Remapping Movement Keys & Menu Keys Causes Main Menu to open randomly while moving

Issue #11314 invalid
Mark Otto created an issue

I’ve been remapping the keys since 2015 to i,j,k,l + Shift keys for diagonals. Since the last update, when moving around on the over world with this setup, the main game menu will pop up. It isn’t consistent, meaning I can’t press the same key combination twice to produce the same behaviour, but happens often enough to render the game for this version unplayable.

Idk whats going wrong, but if I had to guess its something to do with the way tokens are being consumed and interpreted by the new input manager you’ve programmed.

I’d highly recommend attempting to remap the keys in-game to a Nethack-esque setup, because the in-game experience is super jank. Whats the point to have remappable keys if remapping the keys breaks the game? It was working 5 years ago just fine. But I get that the new input manager is necessary to get controller support and etc. just please fix it for keyboard.

Computer specs:

OS: Arch Linux x86_64
Host: 20W4002BMH ThinkPad T15 Gen 2i
Kernel: 6.8.2-arch2-1
Uptime: 1 day, 8 hours, 28 mins
Packages: 1669 (pacman)
Shell: bash 5.2.26
Resolution: 1920x1080
WM: i3
Theme: Gruvbox_Dark #Adwaita [GTK2], Gruvbox_Dark [GTK3]
Icons: Adwaita [GTK2]
Terminal: alacritty
CPU: 11th Gen Intel i7-1165G7 (8) @ 4.700GHz
GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics]
Memory: 7242MiB / 15717MiB 

Here’s my Keymap:

mio.Keymap.json:

{
   "PrimaryMapKeyToCommand": null,
   "PrimaryMapCommandToKey": null,
   "SecondaryMapKeyToCommand": null,
   "SecondaryMapCommandToKey": null,
   "PrimaryMapKeyToCommandLayer": {
      "*default": {
         "27": "CmdSystemMenu",
         "65609": "CmdMoveNW",
         "104": "CmdMoveN",
         "65612": "CmdMoveNE",
         "100": "CmdMoveW",
         "102": "CmdMoveE",
         "65610": "CmdMoveSW",
         "98": "CmdMoveS",
         "65611": "CmdMoveSE",
         "32": "CmdUse",
         "120": "CmdLoad",
         "116": "CmdSave",
         "112": "CmdHelp",
         "65724": "CmdMoveU",
         "65726": "CmdMoveD",
         "131153": "CmdQuit",
         "262214": "CmdCancel"
      },
      "Adventure": {
         "67": "CmdTalk",
         "186": "CmdLook",
         "71": "CmdGet",
         "69": "CmdGetFrom",
         "79": "CmdOpen",
         "65": "CmdAbilities",
         "70": "CmdFire",
         "82": "CmdReload",
         "84": "CmdThrow",
         "131156": "CmdTarget",
         "87": "CmdWait",
         "110": "CmdWait20",
         "131182": "CmdWait100",
         "65623": "CmdWaitUntilHealed",
         "131291": "CmdWaitUntilMorning",
         "96": "CmdAutoExplore",
         "89": "CmdInventory",
         "90": "CmdActiveEffects",
         "88": "CmdCharacter",
         "81": "CmdQuests",
         "65606": "CmdFactions",
         "80": "CmdTinkering",
         "131149": "CmdMessageHistory",
         "131175": "CmdAttackNW",
         "262217": "CmdAttackN",
         "131177": "CmdAttackNE",
         "262218": "CmdAttackW",
         "262220": "CmdAttackE",
         "131169": "CmdAttackSW",
         "262219": "CmdAttackS",
         "131171": "CmdAttackSE",
         "131181": "CmdAttackU",
         "131179": "CmdAttackD",
         "111": "CmdShowSidebar",
         "106": "CmdShowSidebarMessages",
         "226": "CmdAttackDirection",
         "65762": "CmdAttackCell",
         "65601": "CmdAttackNearest",
         "131137": "CmdAutoAttack",
         "131085": "CmdMoveTo",
         "65549": "CmdMoveToEdge",
         "8": "CmdMoveToPointOfInterest",
         "131259": "CmdJournal",
         "131139": "CmdCompanions",
         "65605": "CmdEquipment"
      },
      "Chargen": {
         "82": "CmdChargenRandom",
         "46": "CmdChargenReset",
         "86": "CmdChargenMutationVariant",
         "79": "CmdChargenItemOptions"
      },
      "Targeting": {
         "106": "CmdMissileWeaponMenu"
      },
      "Actions": {
         "33": "Page Up",
         "34": "Page Down"
      }
   },
   "SecondaryMapKeyToCommandLayer": {
      "*default": {
         "103": "CmdMoveNW",
         "109": "CmdMoveU",
         "107": "CmdMoveD",
         "105": "CmdMoveNE",
         "97": "CmdMoveSW",
         "99": "CmdMoveSE",
         "73": "CmdMoveN",
         "74": "CmdMoveW",
         "76": "CmdMoveE",
         "75": "CmdMoveS",
         "131261": "CmdUse"
      },
      "Adventure": {
         "85": "CmdInventory",
         "196646": "CmdAttackNW",
         "196647": "CmdAttackNE",
         "196645": "CmdAttackSW",
         "196648": "CmdAttackSE",
         "131176": "CmdAttackN",
         "131172": "CmdAttackW",
         "131174": "CmdAttackE",
         "131170": "CmdAttackS",
         "191": "CmdShowSidebar",
         "131261": "CmdJournal",
         "77": "CmdMessageHistory",
         "192": "CmdAutoExplore",
         "131264": "CmdWaitUntilMorning"
      },
      "Chargen": {},
      "Targeting": {},
      "Actions": {
         "131110": "Page Up",
         "131112": "Page Down"
      }
   },
   "PrimaryMapCommandToKeyLayer": {
      "*default": {
         "CmdSystemMenu": 27,
         "CmdMoveNW": 65609,
         "CmdMoveN": 104,
         "CmdMoveNE": 65612,
         "CmdMoveW": 100,
         "CmdMoveE": 102,
         "CmdMoveSW": 65610,
         "CmdMoveS": 98,
         "CmdMoveSE": 65611,
         "CmdUse": 32,
         "CmdLoad": 120,
         "CmdSave": 116,
         "CmdHelp": 112,
         "CmdMoveU": 65724,
         "CmdMoveD": 65726,
         "CmdQuit": 131153,
         "CmdCancel": 262214
      },
      "Adventure": {
         "CmdTalk": 67,
         "CmdLook": 186,
         "CmdGet": 71,
         "CmdGetFrom": 69,
         "CmdOpen": 79,
         "CmdAbilities": 65,
         "CmdFire": 70,
         "CmdReload": 82,
         "CmdThrow": 84,
         "CmdTarget": 131156,
         "CmdWait": 87,
         "CmdWait20": 110,
         "CmdWait100": 131182,
         "CmdWaitUntilHealed": 65623,
         "CmdWaitUntilMorning": 131291,
         "CmdAutoExplore": 96,
         "CmdInventory": 89,
         "CmdActiveEffects": 90,
         "CmdCharacter": 88,
         "CmdQuests": 81,
         "CmdFactions": 65606,
         "CmdTinkering": 80,
         "CmdMessageHistory": 131149,
         "CmdAttackNW": 131175,
         "CmdAttackN": 262217,
         "CmdAttackNE": 131177,
         "CmdAttackW": 262218,
         "CmdAttackE": 262220,
         "CmdAttackSW": 131169,
         "CmdAttackS": 262219,
         "CmdAttackSE": 131171,
         "CmdAttackU": 131181,
         "CmdAttackD": 131179,
         "CmdShowSidebar": 111,
         "CmdShowSidebarMessages": 106,
         "CmdAttackDirection": 226,
         "CmdAttackCell": 65762,
         "CmdAttackNearest": 65601,
         "CmdAutoAttack": 131137,
         "CmdMoveTo": 131085,
         "CmdMoveToEdge": 65549,
         "CmdMoveToPointOfInterest": 8,
         "CmdJournal": 131259,
         "CmdCompanions": 131139,
         "CmdEquipment": 65605
      },
      "Chargen": {
         "CmdChargenRandom": 82,
         "CmdChargenReset": 46,
         "CmdChargenMutationVariant": 86,
         "CmdChargenItemOptions": 79
      },
      "Targeting": {
         "CmdMissileWeaponMenu": 106
      },
      "Actions": {
         "Page Up": 33,
         "Page Down": 34
      }
   },
   "SecondaryMapCommandToKeyLayer": {
      "*default": {
         "CmdMoveNW": 103,
         "CmdMoveU": 109,
         "CmdMoveD": 107,
         "CmdMoveNE": 105,
         "CmdMoveSW": 97,
         "CmdMoveSE": 99,
         "CmdMoveN": 73,
         "CmdMoveW": 74,
         "CmdMoveE": 76,
         "CmdMoveS": 75,
         "CmdUse": 131261
      },
      "Adventure": {
         "CmdInventory": 85,
         "CmdAttackNW": 196646,
         "CmdAttackNE": 196647,
         "CmdAttackSW": 196645,
         "CmdAttackSE": 196648,
         "CmdAttackN": 131176,
         "CmdAttackW": 131172,
         "CmdAttackE": 131174,
         "CmdAttackS": 131170,
         "CmdShowSidebar": 191,
         "CmdJournal": 131261,
         "CmdMessageHistory": 77,
         "CmdAutoExplore": 192,
         "CmdWaitUntilMorning": 131264
      },
      "Targeting": {},
      "Chargen": {},
      "Actions": {
         "Page Up": 131110,
         "Page Down": 131112
      }
   }
}

Here is PlayerOptions.json

{
"OptionModernUI":"No",
"OptionMusicVolume":"40",
"OptionMusic":"No",
"OptionDisplayFramerate":"Unlimited",
"OptionMainMenuBackground":"Classic",
"OptionKeyRepeatDelay":"5",
"OptionMouseInput":"No",
"OptionDisplayMousableZoneTransitionBorder":"No",
"OptionFloatingKeyboard":"No",
"OptionAutosaveInterval":"40",
"OptionAutoTorch":"Yes",
"OptionAutoDisassembleScrap":"Yes",
"OptionAutoexploreRate":"ì",
"OptionAutoexploreIgnoreEasyEnemies":"None",
"OptionAutoexploreIgnoreDistantEnemies":"5",
"OptionAutogetFromNearby":"Yes",
"OptionKeyRepeatRate":"85",
"OptionEnableMods":"No"
}

Comments (3)

  1. Log in to comment