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 intercept the ESC key even if it has been rebound with standard X tools #24859

Closed
Ybalrid opened this issue Apr 16, 2017 · 4 comments
Closed
Assignees

Comments

@Ybalrid
Copy link

Ybalrid commented Apr 16, 2017

  • VSCode Version: Code 1.11.1 (d9484d1, 2017-04-06T13:55:56.395Z)
  • OS Version: Linux x64 4.10.9-1-ARCH
  • Extensions:
Extension Author Version
cpptools ms-vscode 0.10.5
cmake twxs 0.0.17
cmake-tools vector-of-bool 0.9.4
vim vscodevim 0.6.15

Steps to Reproduce:

  1. swap the esc key and capslock key with xmodmap (config file below)
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
  1. VScode still think the ESC key is the ESC, but corrently intercept caps-lock as ESC key. Making me switch modes with the vim emulation when I'm just toogleling capslock.
@Powersource
Copy link

Powersource commented Apr 17, 2017

I can reproduce/have the same problem. I don't know of any other application that has this effect (even discord, another electron app, works fine).

I have it setup through the settings menus in Mate, but I think it uses the same tools under the hood.

VSCode version 1.11.2
4.10.9-1-ARCH
I have the vim plugin too but it still happens with it disabled.

@Ybalrid
Copy link
Author

Ybalrid commented Apr 17, 2017

Yes, a lot of vim enthusiast swap the ESC and CapsLock (or just make Caps an ESC key). It's how the terminal where Vi was codded had it's layout, and it makes switching mode easier.

Now, for me having Caps an ESC key is muscle-memory, and it's really annoying to have to swap them around back to be able to use VSCode with the Vim plugin.

So, apparently, VSCode does something funny whith how it handle the keyboard, and it shouldn't ^^"

@Ybalrid
Copy link
Author

Ybalrid commented Apr 20, 2017

This option also occus if the esc and caps lock keys are swapped using the "gnome-tweak-tool' program.

I can also confirm that the bug is present with 1.11.2

@alexdima
Copy link
Member

Let's track in #23991

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants