claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Allow customization of mode switching shortcuts (Alt+M vs Shift+Tab)

Open KylerSpradling opened this issue 1 year ago • 12 comments

Summary

Currently, Claude Code uses different keyboard shortcuts for mode switching on different platforms:

  • Mac: Shift+Tab
  • Windows: Alt+M (as workaround, see #3390)

This inconsistency creates a poor user experience when switching between platforms.

Request

Please add the ability to customize mode switching shortcuts in Claude Code settings, or standardize the shortcut across all platforms.

Use Case

As a user who works across multiple platforms (Mac, Windows, Unix), I would like to:

  1. Use the same keyboard shortcut for mode switching regardless of platform
  2. Customize the shortcut to match my workflow preferences
  3. Have consistent muscle memory across environments

References

  • Related issue: #3390 (Windows Shift+Tab not working)
  • Related issue: #3368

KylerSpradling avatar Aug 16 '25 00:08 KylerSpradling

I would like to add that when using Claude Code over SSH, keyboard shortcuts are configured based on the host machine, not the client machine I am currently using. Adding this feature would also solve this issue.

mateusnc avatar Oct 19 '25 02:10 mateusnc

Control-O overlaps with Midnight Commander, who intercepts it. Sorry, oldfag here. I'd like to remap it to something different

elik-ru avatar Oct 25 '25 19:10 elik-ru

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.

github-actions[bot] avatar Dec 08 '25 10:12 github-actions[bot]

Still occurs

elik-ru avatar Dec 08 '25 10:12 elik-ru

I need this feature. It's annoying and I can't change it. Does anyone have a work around at the moment?

muhFaza avatar Dec 17 '25 04:12 muhFaza

Oh my God, please add this feature. This is insane how much time it's been since it was asked and nobody bothered. In the meanwhile, I can't remap/ignore the Iterm2 ALT+T for opening a new tab while preserving that same key combination to be sent to claude for "toggle thinking". "TAB TAB" used to work for me in the version prior to that for toggle thinking, and it was removed deliberately without providing users an adequate alternative. People complain about "ALT+M" on Macos too, which is another fair thing to call out. It's frustrating. Please make it flexible for your users.

JulianPinzaru avatar Dec 18 '25 00:12 JulianPinzaru

ALTGR + space is overloaded by Claude Desktop. This prevents the use of the Bépo keyboard to get “_”.

mipsou avatar Dec 26 '25 03:12 mipsou

plus 1 for custom mapping mode change hotkey

jsfentress avatar Jan 07 '26 18:01 jsfentress

holovskyi avatar Jan 10 '26 14:01 holovskyi

Still occurs

damody avatar Jan 13 '26 02:01 damody

Shipped in v2.1.18: keyboard shortcuts are customizable via ~/.claude/keybindings.json (run /keybindings to get started). The mode-switch action is chat:cycleMode, so you can bind it to the same key on every platform. Changelog: https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md — docs: https://code.claude.com/docs/en/keybindings

🤖 Generated with Claude Code

bcherny avatar Aug 17 '26 03:08 bcherny

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.

github-actions[bot] avatar Oct 07 '26 14:10 github-actions[bot]