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

Remapped keys (escape) in VSCode 1.11 #1479

Closed
JasonAsmk opened this issue Apr 6, 2017 · 11 comments
Closed

Remapped keys (escape) in VSCode 1.11 #1479

JasonAsmk opened this issue Apr 6, 2017 · 11 comments

Comments

@JasonAsmk
Copy link

What did you do?

Tried to use an OS remapped key, namely Caps which should produce an Escape.

What did you expect to happen?

Expected to exit from insert to normal mode in file.

What happened instead?

Nothing happened, remapped key does nothing.

Technical details:

Used to work in previous version of VSCode and latest VSCodeVim, now it doesn't. AFAIK they changed the way keybinding works, so that might be a breaking change.
The mapping works fine in every other context except from VSCodeVim (e.g. in my case pressing Caps to dismiss a VSCode popup). Layout is standard US .

  • VSCode Version: 1.11
  • VsCodeVim Version: 0.6.14
  • OS: Linux
@Valve
Copy link

Valve commented Apr 6, 2017

I remapped CAPS to ESC everywhere because of MBP 2016 and now it's not working 😢
Please let me know if this is an issue which should be addressed instead in the core editor

@dannyob
Copy link

dannyob commented Apr 7, 2017

I think this problem is caused by VS Code's work on native keymaps (see https://github.com/Microsoft/vscode/wiki/Keybindings ). Rolling back to an earlier version of VS Code fixed it for me.

@johnfn
Copy link
Member

johnfn commented Apr 7, 2017

To those having issues, VSCode has a workaround here:

microsoft/vscode#23991

@xconverge
Copy link
Member

@Valve You know that in macOS you can open the keyboard settings and click modifier keys, and then set caps lock to esc.

@Valve
Copy link

Valve commented Apr 9, 2017 via email

@xconverge
Copy link
Member

Looks like vscode just pushed an update that should have fixed this perhaps?

Looking for some of you to confirm then we can close the ticket :)

@spiffytech
Copy link

Negative, version 1.11.2 doesn't enter Vim normal mode when I hit my remapped Caps Lock key.

@Chillee Chillee changed the title Remapped keys in VSCode 1.11 Remapped keys (escape) in VSCode 1.11 Jun 2, 2017
@xconverge
Copy link
Member

Is anyone still experiencing this issue?

@Chillee
Copy link
Member

Chillee commented Sep 28, 2017

@xconverge Yes. It's very annoying.

@adelsz
Copy link

adelsz commented Jan 21, 2018

This setting fixed the mapping for me:

{
    "keyboard.dispatch": "keyCode"
}

Looks like it changes the way key codes are passed around in VS Code.

@jpoon
Copy link
Member

jpoon commented Jun 15, 2018

Closing as it seems like we have a workaround. Also see https://github.com/Microsoft/vscode/wiki/Keybinding-Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants