[BUG]macOS system shortcuts (Cmd+H, Cmd+M) not working when Claude panel is focused
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
(Reopening https://github.com/anthropics/claude-code/issues/12358 because the triage bot incorrectly closed)
What's Wrong?
On macOS, system shortcuts like Cmd+H (hide window) and Cmd+M (minimize window) work correctly throughout VSCode, but do not work when the Claude Code panel is focused.
What Should Happen?
Actual behavior: Nothing happens. The shortcuts appear to be captured/swallowed by the Claude webview. Additional context:
Both shortcuts work correctly when any other part of VSCode is focused (editor, file explorer, etc.)
Neither shortcut appears in VSCode's keyboard shortcuts list, suggesting the webview is intercepting them before VSCode processes them
This affects standard macOS window management workflows
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
What Should Happen?
Expected behavior:
Cmd+H should hide the VSCode window
Cmd+M should minimize the VSCode window
Error Messages/Logs
Steps to Reproduce
Open VSCode with Claude Code extension installed
Open the Claude Code panel
Click in the Claude panel to focus it
Press Cmd+H or Cmd+M
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.84
Platform
Google Vertex AI
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
Showing cached comments. Read the full discussion on GitHub ↗
7 Comments
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
this is happening suddenly now with a keybinding in vs code for me : anything
cmd+shift+foogets intercepted.This is in version
2.1.84Yup. Fun to see all the previous reports of this issue get closed as stale, as they proceed to not be fixed.
This is a consistent annoyance. Would appreciate a fix!
Commenting because otherwise this will get marked as stale and we'll have to open _another_ ticket for it. Again.
This just happened for me starting yesterday
As I was typing this to rule out different variables, I just fixed it for myself at least.
For me: I was able to trace it down to the fact that I had a Markdown file open, previewing it with the Markdown Interactive Checkbox extension active. When I closed that pane, Cmd-H started working again.
Not sure if that's helpful for others, but figured I'd log it!
This issue is driving me nuts also. Checked and removed all bindings to cmd-H. Claude Code VS Code extension intercepts macOS Cmd-H when focused; VS Code keybinding troubleshooting shows no binding after removing workbench.action.browser.showHistory.
Even worse, I added app specific app shortcut for VScode and Claude still swallows that one also. This is major annoyance, can this be fixed?