[BUG]macOS system shortcuts (Cmd+H, Cmd+M) not working when Claude panel is focused

Status Open
Reported on v2.1.84
Maintainer reply None cached
Activity 8 comments · opened Mar 26, 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?

(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_

View original on GitHub ↗

7 Comments

github-actions[bot] · 5 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/12358
  2. https://github.com/anthropics/claude-code/issues/25004

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

skoonin · 5 months ago

this is happening suddenly now with a keybinding in vs code for me : anything cmd + shift + foo gets intercepted.
This is in version 2.1.84

joshuahhh · 4 months ago

Yup. Fun to see all the previous reports of this issue get closed as stale, as they proceed to not be fixed.

rossmeissl · 3 months ago

This is a consistent annoyance. Would appreciate a fix!

armordog · 2 months ago

Commenting because otherwise this will get marked as stale and we'll have to open _another_ ticket for it. Again.

prossm · 2 months ago

This just happened for me starting yesterday

  • Mac OS Sequoia 15.6.1 (24G90)
  • VS Code Version: 1.118.1 (Universal)
  • 2.1.177 (Claude Code)

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!

jilavsky · 2 months ago

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?

Showing cached comments. Read the full discussion on GitHub ↗