Skip to content

Toggle comment not working for macOS 11.6.1 #136351

@layne-sadler

Description

@layne-sadler

macOS 11.6.1 (freshly re-imaged)

Here is what I have tried:

  • Default keybindings, and setting my own keybindings (both 'CMD+/' and 'CTRL+/').
  • Made sure no other shortcuts were occupying those keybindings.
  • Restarting the app.
  • Disabled all extensions.
  • Used my laptop keyboard and an external keyboard.
  • Ensured that my OS keyboard language is configured the American ANSI.
  • Restart OS.
  • Read through my OS keyboard shortcuts to see if the mappings were occupyied/ overriding those shortcuts.
  • changed VS Code setting Keyboard: Dispatch from 'code' to 'keyCode'
  • VS Code (latest) and Sublime Text (latest) using UI's Edit > Comment > Toggle Comment

Enabled tracking keystrokes to ensure that the right keys are being received by the application.

VS Code

[2021-11-03 08:51:22.729] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
[2021-11-03 08:51:22.730] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
[2021-11-03 08:51:22.731] [renderer1] [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
[2021-11-03 08:51:23.326] [renderer1] [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: Slash, keyCode: 191, key: /
[2021-11-03 08:51:23.327] [renderer1] [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: Slash, keyCode: 85 ('/')
[2021-11-03 08:51:23.327] [renderer1] [info] [KeybindingService]: | Resolving ctrl+[Slash]
[2021-11-03 08:51:23.327] [renderer1] [info] [KeybindingService]: \ From 1 keybinding entries, matched editor.action.commentLine, when: editorTextFocus && !editorReadonly, source: user.
[2021-11-03 08:51:23.726] [renderer1] [info] [KeybindingService]: + Ignoring single modifier ctrl due to it being pressed together with other keys.

^ gist of keymap

Sublime Text

key evt: super+/
command: toggle_comment {"block": false}

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from posterkeybindingsVS Code keybinding issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions