-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Add support for "e.key" keybindings in extension's contributes.keybindings
#3671
Comments
contributes.keybindings
contributes.keybindings
Also, the dead key problem will be solved too if "real key" binding is possible. |
aioutecism/amVim-for-VSCode#46 (I didn't manage to test it - low skills developing Code plugins :)) |
https://github.com/alexandrudima/vscode-vim shows how to better handle keyboard input in the case of a vim extension |
Well, yes, listening to |
Unfortunately, all the commands of vscode itself have the same limitation. This is not a limitation we have added, it was a design choice done by w3c when they drafted the We can revisit this once Chromium decides to implement KeyboardEvent.key in a correct way, so it is ok with me to keep this open as a tracking issue. |
Thanks! Looking forward to the fix. |
contributes.keybindings
contributes.keybindings
This is now done via #130396 , where extensions can contribute scan code based keybindings. the full list of scan codes. |
I'm encountering this problem when dealing with different keyboard layout in extension.
Say I have these in my extension's
package.json
:I'm trying to map
\
here.However, what VSCode actually does is map
VK_OEM_5
tomyExtension.backSlash
.Therefore, I get
\ => myExtension.backSlash
on US keyboard (which is correct) but# => myExtension.backSlash
on British keyboard (which is wrong), which is not correct.I've done a workaround to deal with different keyboard layouts here.
But users have to add a setting in configuration in order to tell the extension the layout they are using.
This is troublesome and extension shouldn't do all the handling of keyboard layout.
The text was updated successfully, but these errors were encountered: