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

Keyboard layout inconsistency on Linux #126841

Closed
Deleplace opened this issue Jun 21, 2021 · 1 comment
Closed

Keyboard layout inconsistency on Linux #126841

Deleplace opened this issue Jun 21, 2021 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) keyboard-layout Keyboard layout issues linux Issues with VS Code on Linux

Comments

@Deleplace
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.57.1
  • OS Version: Debian 5.10.28 x86_64 GNU/Linux

Steps to Reproduce:

  1. Use a computer with a QWERTY (English (US)) keyboard
  2. Plug a French AZERTY USB keyboard and select French layout
  3. Type the letter A with the French AZERTY keyboard
  4. As expected, the correct keyboard is used and an "a" shows up in the current editor
  5. Hit the shortcut "Ctrl+A" with the French AZERTY keyboard to select all the text
  6. This is incorrectly understood as "Ctrl+Q", which results in VSCode immediately shutting down

Likewise, "Ctrl+Q" is incorrectly recognized as "Ctrl+A".

Some other shortcuts (Ctrl+C, Ctrl+V, etc) work properly because theirs keys have the same position in the layouts QWERTY and AZERTY.

This is not a dupe of #23690 because the layout is correct when typing text, and incorrect when using keyboard shortcuts.

@alexdima
Copy link
Member

This is a duplicate of #23690. That is how #23690 manifests itself. Text input respects the select keyboard layout, while keyboard shortcuts do not. As a workaround you can try "keyboard.dispatch": "keyCode" or defining keyboard layout user independent keybindings (e.g. cmd+[KeyA]).

@alexdima alexdima added *duplicate Issue identified as a duplicate of another issue(s) keyboard-layout Keyboard layout issues linux Issues with VS Code on Linux labels Aug 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2021
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) keyboard-layout Keyboard layout issues linux Issues with VS Code on Linux
Projects
None yet
Development

No branches or pull requests

2 participants