Vscode: Dvorak - QWERTY Keyboard Layout: In 1.11, keyboard shortcuts don't work as expected on Mac OS

Created on 6 Apr 2017  Â·  9Comments  Â·  Source: microsoft/vscode

  • VSCode Version: 1.11
  • OS Version: Mac OS Sierra 10.12.4 (16E195)

Steps to Reproduce:

  1. Set up Dvorak - QWERTY layout
  2. Use any keyboard binding
  3. Keybindings no longer revert to QWERTY layout as they should
bug keybindings keyboard-layout mac verified

Most helpful comment

Thank you, that means we're busted. My assumptions were wrong :). The only workaround for now would be "keyboard.dispatch": "keyCode". Can you please confirm the workaround works for you?

All 9 comments

It appears the new key-rebinding feature when changing keyboard layout does not detect the Dvorak - Cmd-QWERTY layout correctly.

How do you downgrade to an older version of VS Code until this issue is resolved? Older version can be downloaded here: http://code.visualstudio.com/updates/v1_10

PS. The key rebinding feature is awesome. Nothing bad about that. :)

The most painful one is Cmd+W: It opens the preferences instead of closing the tab. I am going to downgrade to v1.10 until this is resolved.

Workaround: switch VS Code to dispatch based on key code again. Add the following setting:
"keyboard.dispatch": "keyCode" and restart VS Code


I would really like to understand your setup. I'm sorry for the breakage, I am really trying to get this right. Could you please explain like I'm five how to get into your setup (I thought the whole point of dvorak is that its not qwerty -- the name contradicts itself, r cannot be both between o and a and betweer e and t), and what key combination fails. It would also help to attach here what our C++ node module detects (open an editor, press F1 > Developer: Inspect Keyboard Mappings save the output to a file and attach here).

The keyboard layout is called "Dvorak - QWERTY ⌘". While the command key is pressed, it switches to the QWERTY layout, and otherwise it's the Dvorak layout.

Inspect Keyboard Mappings: https://gist.github.com/mstange/d739bfacecee8cbd6d46a89f7ce95f98

Thank you, that means we're busted. My assumptions were wrong :). The only workaround for now would be "keyboard.dispatch": "keyCode". Can you please confirm the workaround works for you?

The workaround works for me. Thanks!

@alexandrudima the point of using this layout at least for me is the ability to preserve some commonly used hot keys as they are under QWERTY. For example Cmd + C and Cmd + W. So when you press Cmd your layout reverses to QWERTY and they just work.

You can also get around it by opening VSCode while having the standard keyboard selected. @gyzerok I do the same because then copy and paste becomes a two handed endeavor.

@alexandrudima most of the common hot keys are also probably formulated with QWERTY in mind so ⌘C, ⌘V, ⌘W etc are all one handed instead of 2 handed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

philipgiuliani picture philipgiuliani  Â·  3Comments

sijad picture sijad  Â·  3Comments

DovydasNavickas picture DovydasNavickas  Â·  3Comments

mrkiley picture mrkiley  Â·  3Comments

biij5698 picture biij5698  Â·  3Comments