Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot navigate menu with arrow keys #346

Open
dvdvgt opened this issue Sep 8, 2024 · 2 comments
Open

Cannot navigate menu with arrow keys #346

dvdvgt opened this issue Sep 8, 2024 · 2 comments

Comments

@dvdvgt
Copy link

dvdvgt commented Sep 8, 2024

Hey, I am currently facing the issue that I cannot navigate the menu (either opened with : or CMD+SHIFT+P) using the arrow keys. Using "Developer: Toggle Keyboard Shortcuts Troubleshooting" I get the following log:

2024-09-08 16:58:35.080 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-09-08 16:58:35.081 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-09-08 16:58:35.082 [info] [KeybindingService]: / Received  keydown event - modifiers: [shift], code: ShiftLeft, keyCode: 16, key: Shift
2024-09-08 16:58:35.082 [info] [KeybindingService]: | Converted keydown event - modifiers: [shift], code: ShiftLeft, keyCode: 4 ('Shift')
2024-09-08 16:58:35.082 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-09-08 16:58:35.082 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-09-08 16:58:35.082 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-09-08 16:58:35.083 [info] [KeybindingService]: / Received  keydown event - modifiers: [shift,meta], code: MetaLeft, keyCode: 91, key: Meta
2024-09-08 16:58:35.083 [info] [KeybindingService]: | Converted keydown event - modifiers: [shift,meta], code: MetaLeft, keyCode: 57 ('Meta')
2024-09-08 16:58:35.083 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-09-08 16:58:35.284 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-09-08 16:58:35.284 [info] [KeybindingService]: | Resolving shift+meta+[KeyP]
2024-09-08 16:58:35.285 [info] [KeybindingService]: \ From 2 keybinding entries, matched workbench.action.showCommands, when: no when condition, source: built-in.
2024-09-08 16:58:35.285 [info] [KeybindingService]: / Received  keydown event - modifiers: [shift,meta], code: KeyP, keyCode: 80, key: p
2024-09-08 16:58:35.285 [info] [KeybindingService]: | Converted keydown event - modifiers: [shift,meta], code: KeyP, keyCode: 46 ('P')
2024-09-08 16:58:35.285 [info] [KeybindingService]: | Resolving shift+meta+[KeyP]
2024-09-08 16:58:35.285 [info] [KeybindingService]: \ From 2 keybinding entries, matched workbench.action.showCommands, when: no when condition, source: built-in.
2024-09-08 16:58:35.285 [info] [KeybindingService]: + Invoking command workbench.action.showCommands.
2024-09-08 16:58:35.413 [info] [KeybindingService]: + Ignoring single modifier meta due to it being pressed together with other keys.
2024-09-08 16:58:35.667 [info] [KeybindingService]: / Received  keydown event - modifiers: [], code: ArrowDown, keyCode: 40, key: ArrowDown
2024-09-08 16:58:35.668 [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: ArrowDown, keyCode: 18 ('DownArrow')
2024-09-08 16:58:35.668 [info] [KeybindingService]: | Resolving [ArrowDown]
2024-09-08 16:58:35.668 [info] [KeybindingService]: \ From 30 keybinding entries, matched dance.changeInput, when: inputFocus && !textInputFocus, source: user extension silverquark.dancehelix.
2024-09-08 16:58:35.668 [info] [KeybindingService]: + Invoking command dance.changeInput.

So it seems like it matched the command dance.changeInput, while I would expect it to change my selection in the opened menu. Is there a way to change the keybindings to fix this?

Thanks for your help and work on this extension

@ChiefMateStarbuck
Copy link

Hello @dvdvgt,

I had the same problem and found a solution. Manually reassign up and down arrows in keybindings.json:

    {
        "key": "down",
        "command": "workbench.action.quickOpenNavigateNext",
        "when": "inQuickOpen && !inputBoxFocus"
    },
    {
        "key": "up",
        "command": "workbench.action.quickOpenNavigatePrevious",
        "when": "inQuickOpen && !inputBoxFocus"
    }

This is more of a hack that does not fix the underlying problem but gets the desired effect.
Hope this helps. Godspeed.

@jameynakama
Copy link

Just stopping by to say this is affecting me as well, and driving me insane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants