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

Status Closed — not planned
Maintainer reply None cached
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:

  1. Open VSCode with Claude Code extension installed
  2. Open the Claude Code panel
  3. Click in the Claude panel to focus it
  4. 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

View original on GitHub ↗

11 Comments

github-actions[bot] · 9 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8177
  2. https://github.com/anthropics/claude-code/issues/11949
  3. https://github.com/anthropics/claude-code/issues/8427

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

sidwiesner · 9 months ago

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.

github-actions[bot] · 8 months ago

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.

tbrodbeck · 7 months ago

Please do not close this as this is still an open and very annoying issue

tkunze · 7 months ago

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.

ianwieds · 6 months ago

Please fix! Super annoying

ianwieds · 6 months ago

Had Claude make a workaround.
Just put this in /Users/{you}/Library/Application Support/Code/User/tasks.json

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Minimize Window",
      "type": "shell",
      "command": "osascript -e 'tell application \"System Events\" to tell process \"Code\" to set value of attribute \"AXMinimized\" of front window to true'",
      "presentation": {
        "reveal": "never",
        "close": true
      }
    }
  ]
}

And this in /Users/{you}/Library/Application Support/Code/User/keybindings.json

{
  "key": "cmd+m",
  "command": "workbench.action.tasks.runTask",
  "args": "Minimize Window"
}

And finally...
<img width="774" height="327" alt="Image" src="https://github.com/user-attachments/assets/80cc5793-10c3-4b2b-8d23-9504786c0d71" />

OrestTa · 6 months ago

any workaround for macOS-hiding rather than macOS-minimising?

kennethkikkenborg · 6 months ago

I also have the same issue

github-actions[bot] · 5 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 5 months ago

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.