Closed almino closed 7 years ago
Don't you switch between English and Brazilian keyboard layouts?
They share the same key in each layout
I won't change keyboard layout for the whole system. Is there a way to do it on VS Code?
But if you switch between both keyboard layouts it could be possible to press accidentally Ctrl+; thinking that you are pressing Ctrl+/.
That's what I mean.
I changed the layout to English. The Define Keybinding (Ctrl + K Ctrl + K)
dialog outputed oem_102
when I pressed /. And /
when I pressed ;.
{
"key": "ctrl+oem_102",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
}
The code above doesn't work. It toggle comments on a line, when I press both combinations.
Brazilian Keyboard layout doesn't share the same key for ; adn /.
I have validated that we now (i.e. after PR #22894 aka #17521 -- in today's/tomorrow's Insiders build) appear to behave correctly for this keyboard layout
When pressing the scan code combination Ctrl+[Period]
(red highlight):
When pressing the scan code combination Ctrl+[Slash]
(blue highlight):
This makes me believe the fix in PR #22894 aka #17521 resolves this issue. Please double check in tomorrow's insiders build.
-- Sorry for the English, I used Google Translator --
@alexandrudima I tried to set, but for me still show the wrong or unknown keys.
OS Version: Windows 10 Brazilian Keyboard
Had any more updates on the insiders about?
I'm with bc9a7bb 2017-03-30T08: 11: 58.005Z
@Tekbr The OP was using Linux and it appears you are using Windows. Things vary a lot from operating system to operating system, especially related to keyboard layouts.
Can you please create a separate issue with the exact problem you are running into?
@alexandrudima Ok, I created the issue #23685
This bug still remains on 1.11.2
Steps to Reproduce:
keybindings.json
Define Keybinding (Ctrl + K Ctrl + K)
Expected: Keys showed should be Ctrl + /
Result: Keys showed is Ctrl + ;
Details: I want to set different shortcuts for those combinations of keys, but I can't. For VS Code, Ctrl + ; and Ctrl + / are the same damn thing. By default, pressing these keys, VS Code toggle comments on a line. I want Ctrl + ; to put a semicolon at the end of the line. And Ctrl + / to toggle comments.