vscode: Visual Studio Code: '/' being considered as CtrlRight, so toggle line comment can't be used, doesn't work

  • VSCode Version: 1.52.1
  • OS Version: Pop_OS! 20.0.4

Steps to Reproduce:

  1. Try to use toggle comment doesn’t recognize my ‘/’ as ForwardSlash, troubleshoot show it’s reading and right control
  2. Can’t Re assign the same shortcut because it doesn’t read th character

Does this issue occur when all extensions are disabled?: Yes

I’m on Pop_OS! 20 and am using Visual Studio Code 1.52.1. Keyboard Layout : Portuguese, Brazil , IBM/Lenovo Thinkpad And I’m using a t460. Keyboard Image.

I can’t use the shortcut for commenting anymore ctrl +/ it simply stopped working.

While typing around on the VS Code i can type “/” and use ctrl correctly, most of shortcuts seem to be fine.

But when trying to assigning a new shortcut ,for the toggle line command, it doesn’t accept my ‘/’ key as ‘/’ when typed it say it is “ctrl”. So if i try to asign ctrl + / it will remain as “ctrl +” image with what i’m describing. If i only type “/” it say it’s “ctrl” too, what i’m supposed to do ? can i change the mapping to this key on VS Code ? Image with visual layout showing key typed test.

It’s not accepting my keyboard layout to define new shortcuts it seems at least not with this key. I’m using a Brazil, IBM/Lenovo Thinkpad layout. And the machine keyboard i’m on is a thinkpad too…

keyboard troubleshot: (type ‘ctrl’ release key , type ‘/’ released key, type ‘ctrl’ then type ‘/’ then released ‘/’ then released ‘ctrl’.)

[2021-01-12 19:48:22.249] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
[2021-01-12 19:48:22.249] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
[2021-01-12 19:48:22.249] [renderer1] [info] [KeybindingService]: \ Keyboard event cannot be dispatched.
[2021-01-12 19:48:23.192] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [], code: ControlRight, keyCode: 191, key: /
[2021-01-12 19:48:23.192] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: ControlRight, keyCode: 85 ('/')
[2021-01-12 19:48:23.192] [renderer1] [info] [KeybindingService]: \ Keyboard event cannot be dispatched.
[2021-01-12 19:48:34.483] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
[2021-01-12 19:48:34.483] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
[2021-01-12 19:48:34.484] [renderer1] [info] [KeybindingService]: \ Keyboard event cannot be dispatched.
[2021-01-12 19:48:36.976] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [], code: ControlRight, keyCode: 191, key: /
[2021-01-12 19:48:36.976] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: ControlRight, keyCode: 85 ('/')
[2021-01-12 19:48:36.976] [renderer1] [info] [KeybindingService]: \ Keyboard event cannot be dispatched.
[2021-01-12 19:48:38.045] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
[2021-01-12 19:48:38.046] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
[2021-01-12 19:48:38.046] [renderer1] [info] [KeybindingService]: \ Keyboard event cannot be dispatched.
[2021-01-12 19:48:38.180] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlRight, keyCode: 191, key: /
[2021-01-12 19:48:38.180] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlRight, keyCode: 85 ('/')
[2021-01-12 19:48:38.181] [renderer1] [info] [KeybindingService]: \ Keyboard event cannot be dispatched.

Just realized it’s considering my forward backslash or forward slash as ControlRight, but the layout used is the correct one.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (7 by maintainers)

Most upvoted comments

I had a similar issue, but I believe my report is more detailed. Please check https://github.com/microsoft/vscode/issues/114592