claude-code - 💡(How to fix) Fix Misleading keyboard shortcut labels on macOS: 'Alt' should be 'Option' (⌥)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

In Claude Code's agent view (and elsewhere in the UI), keyboard shortcuts are labeled using Alt — but macOS keyboards do not have an Alt key. The corresponding key on Mac is labeled Option (⌥). This is confusing for macOS users who look at their keyboard for a key that doesn't exist.

Root Cause

Beyond aesthetics, this is an accessibility and onboarding issue — new macOS users (especially those new to terminal tooling) will hunt for a non-existent key. Native key labels are a baseline expectation for any cross-platform CLI/desktop tool.

RAW_BUFFERClick to expand / collapse

Summary

In Claude Code's agent view (and elsewhere in the UI), keyboard shortcuts are labeled using Alt — but macOS keyboards do not have an Alt key. The corresponding key on Mac is labeled Option (⌥). This is confusing for macOS users who look at their keyboard for a key that doesn't exist.

Steps to reproduce

  1. Run Claude Code on macOS
  2. Open the agent view / any UI surface that displays a keyboard shortcut hint involving the Alt key
  3. Observe the hint reads Alt+<key> instead of Option+<key> (or ⌥<key>)

Expected behavior

On macOS, shortcuts should be displayed using the platform-native key name:

  • Option or instead of Alt
  • (Likewise: Command / instead of Ctrl where the shortcut actually maps to Cmd, Return instead of Enter where appropriate, etc.)

On Windows/Linux, Alt remains correct.

Actual behavior

Alt+<key> is shown on all platforms, including macOS, even though no Alt key exists on a Mac keyboard.

Suggested fix

Detect the platform at render time (e.g. process.platform === 'darwin') and swap the modifier label:

GenericmacOSWin/Linux
Alt⌥ / OptionAlt
Ctrl⌘ / Command (if mapping to Cmd) or ⌃ / ControlCtrl
Meta⌘ / CommandWin / Super

A small helper that maps shortcut tokens to their platform-appropriate glyphs would centralize this and prevent future drift.

Environment

  • Claude Code on macOS (Darwin)
  • Affects: shortcut hints in the agent/terminal view

Why this matters

Beyond aesthetics, this is an accessibility and onboarding issue — new macOS users (especially those new to terminal tooling) will hunt for a non-existent key. Native key labels are a baseline expectation for any cross-platform CLI/desktop tool.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

On macOS, shortcuts should be displayed using the platform-native key name:

  • Option or instead of Alt
  • (Likewise: Command / instead of Ctrl where the shortcut actually maps to Cmd, Return instead of Enter where appropriate, etc.)

On Windows/Linux, Alt remains correct.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Misleading keyboard shortcut labels on macOS: 'Alt' should be 'Option' (⌥)