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 open command palette with left ctrl/cmd + left shift + p #169357

Closed
haimingz opened this issue Dec 16, 2022 · 4 comments
Closed

Cannot open command palette with left ctrl/cmd + left shift + p #169357

haimingz opened this issue Dec 16, 2022 · 4 comments
Assignees

Comments

@haimingz
Copy link

haimingz commented Dec 16, 2022

Type: Bug

Just as the title says, I cannot open command palette with left ctrl/cmd + left shift + p. However, the shortcut will work if I use right ctrl/cmd or right shift, i.e.,

  • left ctrl/cmd+ left shift + p: not working
  • right ctrl/cmd + right shift + p: working
  • left ctrl/cmd + right shift + p: working
  • right ctrl/cmd + left shift + p: working

I have been seeing this issue for some time on macOS, Windows, and the web version. Meanwhile, the ctrl/cmd + p (go to file) and the ctrl/cmd + shift + s (save as) shortcuts are working just fine.

Updating to the latest version 1.74.1 does not solve the problem.

20221216095655

VS Code version: Code 1.74.0 (Universal) (5235c6b, 2022-12-05T16:43:37.594Z)
OS version: Darwin x64 17.7.0
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 x 3697)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 16.00GB (7.82GB free)
Process Argv --crash-reporter-id 0e6285f3-6565-422a-95b8-84cd50c17471 --crash-reporter-id 0e6285f3-6565-422a-95b8-84cd50c17471
Screen Reader no
VM 0%
Extensions: none
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1cf:30587006
3biah626:30602489
gswce1:30612156
3d0df643:30613357
89544117:30613380
fim-prod:30623723

@vscodenpa
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.74.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@roblourens
Copy link
Member

Please see https://github.com/microsoft/vscode/wiki/Keybinding-Issues

@haimingz
Copy link
Author

haimingz commented Dec 17, 2022

When I press left cmd + left shift + p:

2022-12-17 10:56:33.180 [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: MetaRight, keyCode: 93, key: Meta
2022-12-17 10:56:33.180 [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: MetaRight, keyCode: 57 ('Meta')
2022-12-17 10:56:33.180 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2022-12-17 10:56:33.312 [info] [KeybindingService]: / Received  keydown event - modifiers: [shift,meta], code: ShiftLeft, keyCode: 16, key: Shift
2022-12-17 10:56:33.326 [info] [KeybindingService]: | Converted keydown event - modifiers: [shift,meta], code: ShiftLeft, keyCode: 4 ('Shift')
2022-12-17 10:56:33.326 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2022-12-17 10:56:33.870 [info] [KeybindingService]: + Ignoring single modifier meta due to it being pressed together with other keys.

When I press right cmd + right shift + p:

2022-12-17 11:05:23.444 [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: MetaLeft, keyCode: 91, key: Meta
2022-12-17 11:05:23.465 [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: MetaLeft, keyCode: 57 ('Meta')
2022-12-17 11:05:23.474 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2022-12-17 11:05:24.052 [info] [KeybindingService]: / Received  keydown event - modifiers: [shift,meta], code: ShiftRight, keyCode: 16, key: Shift
2022-12-17 11:05:24.052 [info] [KeybindingService]: | Converted keydown event - modifiers: [shift,meta], code: ShiftRight, keyCode: 4 ('Shift')
2022-12-17 11:05:24.052 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2022-12-17 11:05:25.170 [info] [KeybindingService]: / Received  keydown event - modifiers: [shift,meta], code: KeyP, keyCode: 80, key: p
2022-12-17 11:05:25.171 [info] [KeybindingService]: | Converted keydown event - modifiers: [shift,meta], code: KeyP, keyCode: 46 ('P')
2022-12-17 11:05:25.171 [info] [KeybindingService]: | Resolving shift+meta+[KeyP]
2022-12-17 11:05:25.171 [info] [KeybindingService]: \ From 1 keybinding entries, matched workbench.action.showCommands, when: no when condition, source: built-in.
2022-12-17 11:05:25.171 [info] [KeybindingService]: + Invoking command workbench.action.showCommands.

It is interesting that the left cmd is recognized as MetaRight whilst the right cmd as MetaLeft. Is it has anything to do with the problem?

@alexdima
Copy link
Member

Thank you for the extra information. It looks like left cmd + left shift + p is not reaching VS Code, therefore it cannot be dispatched by us. Usually this happens when the OS is configured to do something on that particular keybinding or when there is some other software installed on the machine which listens globally on that keybinding. Unfortunately, there is nothing we can do on our side.

@alexdima alexdima closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants