vscode: Incorrect keyboard input when using "AltGr" key.

  • VSCode Version: 1.39.1
  • OS Version: Microsoft Windows (Pro) Version 1903 (OS Build 10.18362.418)
  • PowerShell Version: 5.1

Steps to Reproduce:

  1. Open VSCode
  2. Open a Terminal
  3. Make keyboard keys input combination of “AltGr + 2 then Space” or “AltGr + 7 then Space”
  4. You get the standard key (unexpected) plus the AltGr key (expected)

This happens on an AZERTY keyboard (a Surface Type Cover). I am not able to confirm if this happens on QWERTY too.

On AZERTY keyboards, the keys “2” and “7” consist in 3 characters:

  • Keyboard key “2”: é (standard) + 2 (shift) + ~ (AltGr+Space)
  • Keyboard key “7”: è (standard) + 7 (shift) + ` (AltGr+Space)

Note: This dysfunction only affects PowerShell through VSCode. Code workspace is not affected. And native PowerShell also behaves perfectly.

These keys are quite intensively used. Any solution would be appreciated.

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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 6
  • Comments: 27 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I have a similar issue using Spanish Keyboard (QWERTY distribution). When I try to write @, using Alt-gr + 2, or any Alt-gr + key combination, I have nothing, but an empty space or some tabulations…

Confirmed working in 1.61! Congrats guys!

@Tyriar I know you’re probably busy with a million issues but… Any update on that? It’s still troublesome 😦

I found a temporary workaround (works on Windows at least): use Ctrl+Alt instead of AltGr. Far from practical but hey, it’s something.