-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
alt-gr meta key not available? #1066
Comments
pressing |
Doesn't work for me. I tried to map the open curly to alt-gr-7. Following your tip, I mapped it to Ctrl+Alt+7, which is working, if I press that combination. But if I press alt-gr+7, it still writes 7 |
@snowiow I'm not sure I understand the problem? Can you please share the keybinding rule or your use-case? |
Sure I Have got something like this in the plugin's package.json
Then in the extension.ts I register this command to a handler method
|
@snowiow Thank you for clarifying. I know this is currently the only way to do anything with keys from an extension, but the keybindings rules are a pretty bad way to do character input. The reason is that the keybinding rules are interpreted on browser event Also, you might have noticed that we do not bind by default any keybindings that produce characters. (e.g. no key binding for pressing I have digged into Chromium sources last week and not even Chromium knows reliably what character would be produced on a I have an item on the plan (#917) to understand how VIM extensions could be implemented better:
I think at least in part, supporting VIM extensions consists of providing a means to redirect the character input and instead of calling the internal |
@snowiow @guillermooo Thank you for your patience with this. Please see https://github.com/alexandrudima/vscode-vim if you are authoring a vim emulation extension for VS Code - it is a sample that shows how to capture typed characters (not through keybinding rules). |
From what I've seen in the docs it looks like that the alt-gr meta key can't be mapped for keybindings in the package.json for a plugin. Will this be supported in the future or is there any other way? Thanks in advance.
The text was updated successfully, but these errors were encountered: