microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.39k stars 29.32k forks source link

For some reason sometimes the command + backtick on macOS doesn't work #199874

Open eduardonunesp opened 11 months ago

eduardonunesp commented 11 months ago

Does this issue occur when all extensions are disabled?: Not sure

Version: 1.84.2 (Universal) Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e Date: 2023-11-09T10:52:33.687Z Electron: 25.9.2 ElectronBuildId: 24603566 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Darwin arm64 23.1.0

Steps to Reproduce:

  1. Open at least two windows of the VSCode application
  2. Try to cycle through the windows using the command + backtick, sometimes it stops to works

Note: This issue doesn't happened frequently I'm not sure how to reproduce exactly, I was researching on and found another user with similar problem on some macOS Forum: https://forums.macrumors.com/threads/command-tilde-backtick-randomly-stops-working-until-app-change-vs-code.2412201/

bpasero commented 11 months ago

/duplicate https://github.com/microsoft/vscode/issues/185575

vscodenpa commented 11 months ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

4rc0s commented 11 months ago

I'm seeing this as well in Version: 1.86.0-insider. Not sure it was always this way, but it made switching between workspaces impossible without the ⌘ Command + ⇧ Shift + ` workaround. I recently upgraded to Sonoma 14.2 (23C64). Instead of switching windows it toggles the sidebar like ⌘ Command + B. I have a QWERTY keyboard.

etrippler commented 2 weeks ago

I have an identical problem on:

Version: 1.95.0 (Universal)
Commit: 912bb683695358a54ae0c670461738984cbb5b95
Date: 2024-10-28T20:16:24.561Z (2 days ago)
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.1.0

VS Code seems to completely eat the command + backtick key combo. Keyboard debug log:

Command + Backtick

2024-10-30 14:10:39.645 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-10-30 14:10:39.672 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-10-30 14:10:39.673 [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: MetaLeft, keyCode: 91, key: Meta
2024-10-30 14:10:39.673 [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: MetaLeft, keyCode: 57 ('Meta')
2024-10-30 14:10:39.673 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-10-30 14:10:39.758 [info] [KeybindingService]: + Storing single modifier for possible chord meta.
2024-10-30 14:10:40.059 [info] [KeybindingService]: + Clearing single modifier due to 300ms elapsed.

Command

2024-10-30 14:11:23.306 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-10-30 14:11:23.307 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-10-30 14:11:23.307 [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: MetaLeft, keyCode: 91, key: Meta
2024-10-30 14:11:23.307 [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: MetaLeft, keyCode: 57 ('Meta')
2024-10-30 14:11:23.308 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-10-30 14:11:23.373 [info] [KeybindingService]: + Storing single modifier for possible chord meta.
2024-10-30 14:11:23.675 [info] [KeybindingService]: + Clearing single modifier due to 300ms elapsed.

Backtick

2024-10-30 14:14:02.590 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-10-30 14:14:02.591 [info] [KeybindingService]: | Resolving [Backquote]
2024-10-30 14:14:02.598 [info] [KeybindingService]: \ No keybinding entries.
2024-10-30 14:14:02.598 [info] [KeybindingService]: / Received  keydown event - modifiers: [], code: Backquote, keyCode: 192, key: `
2024-10-30 14:14:02.598 [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: Backquote, keyCode: 91 ('`')
2024-10-30 14:14:02.598 [info] [KeybindingService]: | Resolving [Backquote]
2024-10-30 14:14:02.598 [info] [KeybindingService]: \ No keybinding entries.

As you can see, when Command is pressed, it literally doesn't even detect a backtick. This key combo works fine throughout MacOS and in other apps. Karabiner-EventViewer detects it just fine. Also anecdoteally, on another MacOS machine I have with VS Code, this still works fine.