microsoft / vscode

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

ctrl+q #180616

Closed boldinmv closed 1 year ago

boldinmv commented 1 year ago

Type: Bug

Sometimes the keyboard shortcut ctrl+q stops working. In the settings of keyboard shortcuts, when writing combinations, "ctrl + q" also does not work, only "ctrl" is recorded. In the same place other combinations, for example "ctrl+shift+q" work. OS: Windows 10

VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:02.548Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: Yes

Extensions (79) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 html-snippets|abu|0.2.1 vscode-sql-formatter|adp|1.4.4 vscode-css-formatter|aes|1.0.2 vscode-sqlite|ale|0.14.1 vscode-color|ans|0.4.5 laravel-blade|cjh|1.1.2 readable-indent|cno|1.2.2 gitignore|cod|0.9.0 laravel-goto-view|cod|1.3.8 dscodegpt|Dan|2.1.5 vbscript|Dar|1.0.4 vue-peek|dar|1.0.2 vscode-eslint|dba|2.4.0 mikrotik-routeros-script|dev|2022.9.2 jquerysnippets|don|0.0.1 xml|Dot|2.5.1 gitlens|eam|13.5.0 vscode-html-css|ecm|1.13.1 html-to-javascript-string|evi|0.0.6 vscode-diff|fab|1.4.2 shell-format|fox|7.2.5 vscode-google-translate|fun|1.4.13 duplicate|gee|1.0.2 todo-tree|Gru|0.0.226 vue-snippets|hol|1.0.4 beautify|Hoo|1.5.0 opencart-snippets|Iho|0.0.2 composer|ika|0.8.0 mysql-syntax|jak|1.3.1 vscode-edit-csv|jan|0.7.5 node-module-intellisense|lei|1.5.0 sftp|lix|1.12.10 vscode-JS-CSS-HTML-formatter|lon|0.2.3 Kotlin|mat|1.7.1 xml-format|mik|1.1.3 vscode-html-format|moh|0.0.5 theme-monokai-pro-vscode|mon|1.2.0 vscode-duplicate|mrm|1.2.1 vscode-docker|ms-|1.25.0 vscode-language-pack-ru|MS-|1.77.2023041209 isort|ms-|2022.8.0 python|ms-|2023.6.1 vscode-pylance|ms-|2023.4.30 jupyter|ms-|2023.3.1201040234 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.288.1 remote-ssh|ms-|0.100.0 remote-ssh-edit|ms-|0.84.0 vscode-remote-extensionpack|ms-|0.24.0 notepadplusplus-keybindings|ms-|1.0.7 powershell|ms-|2023.3.3 remote-explorer|ms-|0.4.0 remote-server|ms-|1.0.0 vscode-typescript-tslint-plugin|ms-|1.3.4 color-highlight|nau|2.5.0 gremlins|nho|0.26.0 vetur|oct|0.37.3 indent-rainbow|ode|8.3.1 laravel-blade|one|1.34.0 material-icon-theme|PKi|4.26.0 inline-html|pus|0.3.8 bracket-jumper|sas|1.1.8 code-settings-sync|Sha|3.4.3 trailing-spaces|sha|0.4.1 svg-preview|Sim|2.8.3 vba|spe|1.7.1 es6-string-html|Tob|2.12.1 luna-paint|Tyr|0.16.0 highlight-matching-tag|vin|0.11.0 twig|wha|1.0.2 JavaScriptSnippets|xab|1.8.0 php-debug|xde|1.32.1 markdown-all-in-one|yzh|3.5.1 html-css-class-completion|Zig|1.20.0 php-intellisense|zob|1.1.2 (1 theme extensions excluded)
gjsjohnmurray commented 1 year ago

Please use the Start Extension Bisect command to investigate whether the problem is being caused by one of your extensions.

ulugbekna commented 1 year ago

Hi @boldinmv,

Thanks for filing the issue.

Could you please try the following:

If you are having trouble understanding the output, please feel free to paste here and we'll be happy to help :-)

VSCodeTriageBot commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

boldinmv commented 1 year ago

The bug didn't appear for a long time. Now I have it. The extension bisector could not detect the extension containing the problem.

"Developer: Toggle Keyboard Shortcuts Troubleshooting" log when i`m pressing ctrl+q:

[info] [KeybindingService]: / Soft dispatching keyboard event [info] [KeybindingService]: \ Keyboard event cannot be dispatched [info] [KeybindingService]: / Received keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl') [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase. [info] [KeybindingService]: + Ignoring single modifier ctrl due to it being pressed together with other keys.

In other applications this hotkeys works.

Restarting vscode doesn't help.

ulugbekna commented 1 year ago

I would first recommend switching to latest VS Code if you haven't already.


You should see something like this (note how the key 'q' is registered, while it's not the case for you):

2023-06-08 17:20:59.206 [info] [KeybindingService]: / Soft dispatching keyboard event
2023-06-08 17:20:59.207 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2023-06-08 17:20:59.207 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
2023-06-08 17:20:59.208 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
2023-06-08 17:20:59.208 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2023-06-08 17:20:59.209 [info] [KeybindingService]: / Soft dispatching keyboard event
2023-06-08 17:20:59.210 [info] [KeybindingService]: | Resolving ctrl+Q
2023-06-08 17:20:59.211 [info] [KeybindingService]: \ From 2 keybinding entries, matched workbench.action.quickOpenView, when: no when condition, source: built-in.
2023-06-08 17:20:59.211 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: KeyQ, keyCode: 81, key: q
2023-06-08 17:20:59.211 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: KeyQ, keyCode: 47 ('Q')
2023-06-08 17:20:59.211 [info] [KeybindingService]: | Resolving ctrl+Q
2023-06-08 17:20:59.212 [info] [KeybindingService]: \ From 2 keybinding entries, matched workbench.action.quickOpenView, when: no when condition, source: built-in.
2023-06-08 17:20:59.212 [info] [KeybindingService]: + Invoking command workbench.action.quickOpenView.

I cannot reproduce this, so I need more information from you - do you have some special setup? maybe you work in a virtual machine or there a system or some other app (for example, if you have an app to take screenshots) that could take over this keybinding?

boldinmv commented 1 year ago

achine or there a system or some other app (for example, if you have an app to take screenshots) that could take over this keybinding?

Almost clean windows 10, vscode runs locally, always updated to the latest version. This bug appeared for the first time about 6 months ago.

VSCodeTriageBot commented 1 year ago

Hey @ulugbekna, this issue might need further attention.

@boldinmv, you can help us out by closing this issue if the problem no longer exists, or adding more information.

VSCodeTriageBot commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!