vscode reads AltGr key as cursor-left move through X11 connections

Created on 14 Apr 2017  路  15Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.11.2 (Commit 6eaebe3b9c70406d67c97779468c324a7a95db0e)
  • OS Version: Ubuntu 16.04.2 / Windows 10

Steps to Reproduce:

  1. install/start X server on Windows system (Xming, MobaXterm or VcXsrv)
  2. start code on Linux box (make sure your SSH client has X11 forwarding enbled), use AltGr to compose "{" or similar, cursor jumps left. Interesting to note that both the "{" character and the cursor-left move are produced. This has started with VScode 1.11. Same with code-insiders. Don't get me started.
  3. Tested on 4 different computers.
bug help wanted keybindings linux

Most helpful comment

Experienced the same (same config as OP except Win 7). You can see the cursor move left when clicking just AltGr.
The problem stopped when I -- as the release notes for 1.11.1 suggests -- switched to "keyboard.dispatch": "keyCode".

All 15 comments

Experienced the same (same config as OP except Win 7). You can see the cursor move left when clicking just AltGr.
The problem stopped when I -- as the release notes for 1.11.1 suggests -- switched to "keyboard.dispatch": "keyCode".

I had the same issue. Adding "keyboard.dispatch":"keyCode" fixed it. Thanks @brotulix

After updating to 1.15.1 I had this problem. I didn't have it with prior versions since 1.12 I think. Setting the parameter as suggested by @brotulix fixed the problem.

I had the same issue with version 1.16.1. The solution proposed works as expected!

This solved this issue for me, Thanks :-)

Adding "keyboard.dispatch":"keyCode" fixed the issue but creates an other one.
I can't use the ctrl+/ to comment a line of code anymore.

I had the same problem for a week, struggling with setkbdmap and others. Thanks for the info.

As for the ctrl + / shortcut, i had to remap it to ctrl + shift + / (azerty kbd) even if it worked before when mapped to ctrl + /

I had the same problem and changing it to keyCode fixed it for me.

This also fixed the "/" key of the numpad acting like "page up" for me

same problem and solution here. I believe this only started after upgrading to 1.30.2. Prior version 1.28 or so.

This was driving me crazy, I thought it was the auto-completion of the braces, until I finally realized the cursor was moving as soon as I pressed AltGr. Thanks a bunch!

Thanks! Really useful.

"keyboard.dispatch":"keyCode" fixed both "/" on NumPad and "Alt Gr" issues. (v 1.45.0)

Had the same issue with vscode and Remote Desktop from Windows 10 to an Ubuntu Desktop VM running vscode.
Thanks to this setting the really annoying cursor jumps to the left when entering brackets are gone now.
You are awesome guys! :)

Was this page helpful?
0 / 5 - 0 ratings