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

Alt+M keyboard shortcut to toggle auto-accept mode not working on Windows (since v2.1.3)

Open wynandw87 opened this issue 10 months ago • 19 comments

Description

The Alt+M keyboard shortcut to switch between auto edits and plan mode does not work on Windows machines since version 2.1.3.

Steps to Reproduce

  1. Install Claude Code v2.1.3 or later on Windows
  2. Start a Claude Code session
  3. Press Alt+M to toggle between auto-accept and plan mode
  4. Nothing happens - the mode does not switch

Expected Behavior

Pressing Alt+M should toggle between auto-accept mode and plan mode, as documented in the keyboard shortcuts.

Actual Behavior

The keyboard shortcut is not recognized and the mode remains unchanged.

Environment

  • Claude Code version: 2.1.3+
  • OS: Windows
  • Terminal: Windows Terminal

Additional Context

This shortcut worked correctly in versions prior to 2.1.3.

wynandw87 avatar Jan 12 '26 06:01 wynandw87

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/17304
  2. https://github.com/anthropics/claude-code/issues/17489
  3. https://github.com/anthropics/claude-code/issues/17438

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

github-actions[bot] avatar Jan 12 '26 06:01 github-actions[bot]

it is vibe coding issue, sorry about that

owen800q avatar Jan 12 '26 06:01 owen800q

same issue, can't switch to plan mode using Alt + M , it worked earlier but is no longer working

JoeBrar avatar Jan 12 '26 10:01 JoeBrar

Same issue here.

patschn123 avatar Jan 12 '26 11:01 patschn123

Same

Paul-Hilt avatar Jan 12 '26 15:01 Paul-Hilt

same here

adelfino69 avatar Jan 12 '26 17:01 adelfino69

same here

So I downgraded to 2.0.76 and am using it now.

However, other users, even on Windows, found that the shortcut key was Shift + Tab.

It works fine.

udgttl12 avatar Jan 13 '26 01:01 udgttl12

same

yidasanqian avatar Jan 13 '26 07:01 yidasanqian

Shift + Tab. not working I'm in a VM on proxmox

adelfino69 avatar Jan 13 '26 08:01 adelfino69

A few days ago, it seemed like mode switching was working, but I'm facing the same issue now. It doesn't work in PyCharm either, and PowerShell isn't working either.

minjoyeee avatar Jan 13 '26 08:01 minjoyeee

Same, alt-m has stopped working with the last update it is extremely annoying.

Ditronian avatar Jan 13 '26 13:01 Ditronian

same here, stucked on 2.1.2 to prevent this issue

tmaarcxs avatar Jan 13 '26 13:01 tmaarcxs

same

BorisMolch avatar Jan 13 '26 16:01 BorisMolch

Same issue here

rodrigonormandia avatar Jan 13 '26 17:01 rodrigonormandia

Hi everyone! I have a temporary workaround that will allow you to work on v2.1.2 until this issue has been fixed for Windows users. The problem is that Claude Code updates automatically to the latest version immediately when you open it - therefore, you need to uninstall Claude Code and install the last working version specifically:

First, uninstall claude code via the CLI: npm uninstall -g @anthropic-ai/claude-code

Then, install v2.1.2 specifically with this command: npm install -g @anthropic-ai/[email protected]

Check the version to ensure it installed v2.1.2: claude --version

DON'T OPEN CLAUDE CODE YET! You have to set the environment variable to block it from updating (you'll have to do this each time you open the terminal BEFORE you open claude code): $env:DISABLE_AUTOUPDATER = "1"

Open claude code: claude

Check the version after you exit claude to ensure you're still on v2.1.2: claude --version

These steps are for Windows users affected by this issue - but if you'd like to roll back to v2.1.2 for any other reason, these steps will work on Mac and Linux as well.

wynandw87 avatar Jan 13 '26 18:01 wynandw87

Same issue here, persists in v2.1.7

lukaskucinski avatar Jan 14 '26 03:01 lukaskucinski

the same problem since 2.1.3, so I go back to 2.1.2....

leon80148 avatar Jan 14 '26 12:01 leon80148

Same issue, v2.1.7.

Here's everything I tried: https://github.com/anthropics/claude-code/issues/18323

GTCrais avatar Jan 15 '26 10:01 GTCrais

This now works for me in WezTerm in 2.1.9

GTCrais avatar Jan 16 '26 21:01 GTCrais

This is a duplicate of #17304, which was fixed as of version v2.1.9.

claude[bot] avatar Apr 18 '26 22:04 claude[bot]