Closed nyurik closed 3 months ago
I am not sure this issue belongs to the vscode repo, but I think authors of https://github.com/microsoft/vscode/pull/173456 half a year ago might have some insight into how an extension could disrupt their fix. CC: @hamzahamidi and @alexdima
Looks like this should use a virtual key code
{
"key": "ctrl+[Slash]",
"mac": "cmd+[Slash]",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Comment/uncomment with line comment"
},
{
"key": "ctrl+oem_2",
"mac": "cmd+[Slash]",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Comment/uncomment with line comment"
},
Thanks for looking into it! Does the "mac"
section need to be updated too? (I don't use Mac, so no idea, but others might hit this bug there as well)
That's true It would be better to fire key codes according to the keyboard layout in all operating systems Let me revert #305 since they should change the keyboard layout in thier OS
{
"key": "ctrl+/",
"mac": "cmd+/",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Comment/uncomment with line comment"
},
just released v1.7.0 that supports for Dvorak layouts If there're issues with the layout, this extension guides the user to use a hardware keyboard that matches the key layout of their OS
This only happened in v1.5.10. Switching back to v1.5.9 fixes this issue.
To reproduce (on Linux), install this plugin in VSCode and configure your system to use Dvorak keyboard layout. In a typescript file in VSCode, make several different changes, and use "undo" shortcut --
Ctrl+/
multiple times (the/
key is mapped toz
in Dvorak).Expected: multiple undos Actual: current line gets commented and un-commented with the
//
, as if I was using QWERTYVersions
Possibly related issues