Backspace/Ctrl+Backspace keys reversed in CLI on Windows PowerShell

Status Closed — not planned
Maintainer reply None cached
Activity 4 comments · opened Apr 22, 2026 · closed May 28, 2026

On Windows 11 PowerShell, Claude Code CLI has reversed backspace behavior:

  • Pressing Backspace deletes an entire word (should delete one character)
  • Pressing Ctrl+Backspace deletes one character (should delete a word)

This is the opposite of standard terminal behavior and PSReadLine's correct keybindings.

Environment:

  • Platform: Windows 11 Pro
  • Shell: PowerShell
  • PSReadLine keybindings: Correct (verified with Get-PSReadLineKeyHandler)
  • Backspace is mapped to BackwardDeleteChar ✓
  • Ctrl+Backspace is mapped to BackwardKillWord ✓

Issue appears to be in Claude Code CLI's input handler on Windows, not the shell configuration.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗