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

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

Open
snoetzel32 opened this issue Apr 14, 2017 · 23 comments
Open

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

snoetzel32 opened this issue Apr 14, 2017 · 23 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities keybindings VS Code keybinding issues linux Issues with VS Code on Linux
Milestone

Comments

@snoetzel32
Copy link

  • VSCode Version: 1.11.2 (Commit 6eaebe3)
  • 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.
@brotulix
Copy link

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".

@alexdima alexdima added bug Issue identified by VS Code Team member as probable bug linux Issues with VS Code on Linux keybindings VS Code keybinding issues labels Apr 26, 2017
@meuter
Copy link

meuter commented May 11, 2017

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

@alexdima alexdima added this to the Backlog milestone May 22, 2017
@chmike
Copy link

chmike commented Sep 2, 2017

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.

@serl
Copy link

serl commented Oct 3, 2017

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

@eazrael
Copy link

eazrael commented Mar 29, 2018

This solved this issue for me, Thanks :-)

@alexdima alexdima added the help wanted Issues identified as good community contribution opportunities label Apr 25, 2018
@sey
Copy link

sey commented May 25, 2018

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.

@FlorianIragne
Copy link

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 + /

@inversus
Copy link

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

@yannickvidal
Copy link

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

@flurin-conradin
Copy link

flurin-conradin commented Feb 5, 2019

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

@sam-sla
Copy link

sam-sla commented Feb 20, 2019

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!

@serhatates
Copy link

https://github.com/Microsoft/vscode/wiki/Keybinding-Issues

@miguelcanosantana
Copy link

Thanks! Really useful.

@rnovicky
Copy link

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

@andreas5232
Copy link

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! :)

@viell-dev
Copy link

Had this problem on Remote Desktop to my Linux Mint machine in vscode 1.55.2. keyCode fixed it.

@Karreg
Copy link

Karreg commented Oct 20, 2021

Unfortunately, it does not work with vscode in WSLg. Neither code nor keycode fixes the issue.
In a terminal opened in vscode, the issue is the same. However, in a standard WSL2 terminal, the issue does not occur.

@arnholm
Copy link

arnholm commented Nov 23, 2021

Thanks for this solution, I had this exact problem with vscode in a Kubuntu 20.04 virtual machine. The setting has to be applied for "User", and then it solves the AltGr = "left move" problem that was driving me crazy.

@bkstein
Copy link

bkstein commented Nov 3, 2023

Thanks from my side, too. I had never found this by myself. Just for the records: here's the link to MS's documentation: https://code.visualstudio.com/updates/v1_11#_improved-keyboard-layout-support

@LinqLover
Copy link

LinqLover commented Apr 14, 2024

Same issue when using Remmina to RDP from Ubuntu 20 to Ubuntu 22, Qwertz keyboard layout (and yes, also with all other extensions disabled). Confirm that "keyboard.dispatch": "keyCode" works but breaks Ctrl + / - and I fear further keyboard shortcuts could be affected as well ...

Further, I use settings sync but would like not to synchronize this particular setting. There seems not to be a way to define certain settings locally on a single device - or even better, only when a remote connection to the DE is detected? Would be really great if support for this could be improved!

@hatelamers
Copy link

I don't beleave it, this issue is 7 years old and yet no solution? It is absolute productivity stopper: after a while of blind typing you find a completely messed up source file and have to correct it keystroke by keystroke.

@efedus
Copy link

efedus commented Jun 27, 2024

thanks a lot, because i didn't found the wiki link by myself yet.
on a remote debian 12 + cinamon + xrdp connection with remmina, french keyboard was working fine with all kb layouts i tried, excepting in vscode 1.90.2. during rdp connection. No problem when using local console.

@Leon-Sander
Copy link

Setting keyboard.dispatch to keyCode in the settings solved the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities keybindings VS Code keybinding issues linux Issues with VS Code on Linux
Projects
None yet
Development

No branches or pull requests