[BUG] macOS system shortcuts (Cmd+H, Cmd+M) not working when Claude panel is focused
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 11 comments · opened Nov 25, 2025 · closed Mar 25, 2026
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?
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?
Expected behavior:
- Cmd+H should hide the VSCode window
- Cmd+M should minimize the VSCode window
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:
- 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
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.53
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
VS Code Environment:
Version: 1.106.2 (Universal)
Commit: 1e3c50d64110be466c0b4a45222e81d2c9352888
Date: 2025-11-19T16:56:50.023Z
Electron: 37.7.0
ElectronBuildId: 12781156
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0
11 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Per #11949 I tried opening the chat as a tab and sidebar, and neither of those changed the behavior I'm seeing. The other 2 bugs aren't relevant.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Please do not close this as this is still an open and very annoying issue
Same here, newest Claude Code extension 2.1.21.
Agree, crazy annoying.
Seems unfocusing the chat box via ⌘ Esc works in many cases but this shouldn't happen in the first place since Claude Code doesn't seem to actually use ⌘ H for anything.
Please fix! Super annoying
Had Claude make a workaround.
Just put this in
/Users/{you}/Library/Application Support/Code/User/tasks.jsonAnd this in
/Users/{you}/Library/Application Support/Code/User/keybindings.jsonAnd finally...
<img width="774" height="327" alt="Image" src="https://github.com/user-attachments/assets/80cc5793-10c3-4b2b-8d23-9504786c0d71" />
any workaround for macOS-hiding rather than macOS-minimising?
I also have the same issue
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.