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

Can't use cmd+q in keybinding chord #141688

Closed
roblourens opened this issue Jan 28, 2022 · 2 comments
Closed

Can't use cmd+q in keybinding chord #141688

roblourens opened this issue Jan 28, 2022 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) keybindings VS Code keybinding issues

Comments

@roblourens
Copy link
Member

I have this keybinding

    {
        "key": "cmd+q cmd+q",
        "command": "workbench.action.quit"
    },
    {
        "key": "cmd+q",
        "command": "-workbench.action.quit"
    },

I press cmd+q cmd+q and nothing happens. It works for any other letter, so I thought maybe it's being taken over by electron or something else? Log from "keyboard shortcut troubleshooting"

[2022-01-27 17:24:58.936] [renderer7] [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: MetaLeft, keyCode: 91, key: Meta
[2022-01-27 17:24:58.936] [renderer7] [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: MetaLeft, keyCode: 57 ('Meta')
[2022-01-27 17:24:58.937] [renderer7] [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
[2022-01-27 17:24:59.143] [renderer7] [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: KeyQ, keyCode: 81, key: q
[2022-01-27 17:24:59.143] [renderer7] [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: KeyQ, keyCode: 47 ('Q')
[2022-01-27 17:24:59.144] [renderer7] [info] [KeybindingService]: | Resolving meta+[KeyQ]
[2022-01-27 17:24:59.151] [renderer7] [info] [KeybindingService]: \ No keybinding entries.
[2022-01-27 17:24:59.297] [renderer7] [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: KeyQ, keyCode: 81, key: q
[2022-01-27 17:24:59.297] [renderer7] [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: KeyQ, keyCode: 47 ('Q')
[2022-01-27 17:24:59.298] [renderer7] [info] [KeybindingService]: | Resolving meta+[KeyQ]
[2022-01-27 17:24:59.298] [renderer7] [info] [KeybindingService]: \ No keybinding entries.
[2022-01-27 17:24:59.450] [renderer7] [info] [KeybindingService]: + Storing single modifier for possible chord meta.
[2022-01-27 17:24:59.751] [renderer7] [info] [KeybindingService]: + Clearing single modifier due to 300ms elapsed.
@roblourens
Copy link
Member Author

I can repro in Insiders but not code-oss...

@alexdima
Copy link
Member

Fixed in today's insiders via #141638

@alexdima alexdima added *duplicate Issue identified as a duplicate of another issue(s) keybindings VS Code keybinding issues labels Jan 28, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) keybindings VS Code keybinding issues
Projects
None yet
Development

No branches or pull requests

2 participants