microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.24k stars 28.88k forks source link

Shift is not recognised #228100

Open sonofR9 opened 4 weeks ago

sonofR9 commented 4 weeks ago

Type: Bug

Vscode does not recognise shift (or left shift) key presses as shift.

Output from keyboard shortcut troubleshooting:

2024-09-10 15:15:43.619 [info] [KeybindingService]: / Soft dispatching keyboard event 2024-09-10 15:15:43.620 [info] [KeybindingService]: \ Keyboard event cannot be dispatched 2024-09-10 15:15:43.621 [info] [KeybindingService]: / Received keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control 2024-09-10 15:15:43.621 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl') 2024-09-10 15:15:43.622 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase. 2024-09-10 15:15:43.660 [info] [KeybindingService]: / Soft dispatching keyboard event 2024-09-10 15:15:43.661 [info] [KeybindingService]: \ Keyboard event cannot be dispatched 2024-09-10 15:15:43.661 [info] [KeybindingService]: / Received keydown event - modifiers: [ctrl], code: ShiftLeft, keyCode: 0, key: Shift 2024-09-10 15:15:43.661 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ShiftLeft, keyCode: 0 ('unknown') 2024-09-10 15:15:43.661 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase. 2024-09-10 15:15:43.921 [info] [KeybindingService]: / Soft dispatching keyboard event 2024-09-10 15:15:43.921 [info] [KeybindingService]: | Resolving ctrl+[KeyZ] 2024-09-10 15:15:43.922 [info] [KeybindingService]: \ From 2 keybinding entries, matched undo, when: no when condition, source: built-in. 2024-09-10 15:15:43.923 [info] [KeybindingService]: / Received keydown event - modifiers: [ctrl], code: KeyZ, keyCode: 90, key: я 2024-09-10 15:15:43.923 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: KeyZ, keyCode: 56 ('Z') 2024-09-10 15:15:43.924 [info] [KeybindingService]: | Resolving ctrl+[KeyZ]

Also, I have language change on ctrl+shift (but in browser ctrl+shift+z works just fine, so I am not sure that this problem is related to language change shotcut). Also shift is recognized just fine in keyboard shortcuts menu. First keycode tester in browser recognizes shift as shift (keycode 16). And changing "keyboard.dispatch" setting to "code" or "keyCode" didn't do anything (note: code is recognized correctly according to logs).

VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z) OS version: Linux x64 6.10.6-amd64 Modes: Remote OS version: Linux x64 5.15.0-70-generic

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i5-12450H (12 x 3869)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off| |Load (avg)|1, 1, 1| |Memory (System)|15.34GB (3.62GB free)| |Process Argv|--crash-reporter-id d6824b2b-3e5a-4bc1-84f4-7b1e54a44ccc| |Screen Reader|no| |VM|75%| |DESKTOP_SESSION|gnome| |XDG_CURRENT_DESKTOP|GNOME| |XDG_SESSION_DESKTOP|gnome| |XDG_SESSION_TYPE|wayland| |Item|Value| |---|---| |Remote|SSH: astra-1.7.4-local| |OS|Linux x64 5.15.0-70-generic| |CPUs|12th Gen Intel(R) Core(TM) i5-12450H (6 x 0)| |Memory (System)|7.76GB (6.40GB free)| |VM|100%|
Extensions (37) Extension|Author (truncated)|Version ---|---|--- cmake-format|che|0.6.11 vscode-postgres|cko|1.4.3 codeium|Cod|1.14.12 doxdocgen|csc|1.4.0 vscode-markdownlint|Dav|0.55.0 todo-tree|Gru|0.0.226 vscode-test-explorer|hbe|2.21.1 cmake-language-support-vscode|jos|0.0.9 vscode-clangd|llv|0.1.29 vscode-catch2-test-adapter|mat|4.12.0 git-graph|mhu|1.30.0 vscode-dotnet-runtime|ms-|2.1.5 cmake-tools|ms-|1.19.51 cpptools|ms-|1.21.6 cpptools-extension-pack|ms-|1.3.0 test-adapter-converter|ms-|0.1.9 markdown-preview-enhanced|shd|0.8.14 remote-x11|spa|1.5.0 cmantic|tde|0.9.0 cmake|twx|0.0.17 better-comments|aar|3.0.2 tsl-problem-matcher|amo|0.6.2 Doxygen|bbe|1.0.0 vscode-drawio|hed|1.6.6 gtest-snippets|idm|1.0.1 kanban|lba|1.8.1 jupyter-keymap|ms-|1.1.2 remote-containers|ms-|0.384.0 remote-ssh|ms-|0.114.1 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.88.2 vscode-remote-extensionpack|ms-|0.25.0 remote-explorer|ms-|0.4.3 remote-server|ms-|1.5.2 swdc-vscode|sof|2.8.1 remote-x11-ssh|spa|1.5.0 BuildOutputColorizer|Ste|0.1.6 (2 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaat:30438848 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 945dj816:31013170 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 nativerepl1:31134654 refactort:31108082 pythonrstrctxt:31112756 flightc:31134773 wkspc-onlycs-t:31132770 wkspc-ranged-t:31125599 defaultse:31133495 fje88620:31121564 ```
sonofR9 commented 3 weeks ago

Update: changing keyboard switching shortcut to alt + shift fixes this problem for ctrl + shift + z etc., but, probably, creates the same problem for alt + shift + ....

sonofR9 commented 3 weeks ago

And my host system info (on which problem persists, it is not specific to remote connection) is Debian testing (trixie).