cmd+backspace in multi-line chat input deletes all lines instead of current line
Resolved 💬 7 comments Opened Apr 17, 2026 by gonzalofrancoceballos Closed Apr 18, 2026
Description
When the chat input contains multiple lines, pressing cmd+backspace deletes the entire input (all lines) instead of only the current line, which is the standard macOS behavior in virtually every other text input.
Expected behavior
cmd+backspace should delete only the current line (from cursor to start of line), matching native macOS text editing conventions.
Actual behavior
cmd+backspace clears the entire multi-line input, wiping work from other lines.
Steps to reproduce
- Open Claude Code in a macOS terminal
- In the chat input, type several lines (use
ctrl+jfor newlines) - Place cursor on one of the lines
- Press
cmd+backspace - Observe that all lines are deleted, not just the current one
Workaround
None via keybindings — the available chat actions only include chat:clearInput (full clear), with no line-level delete primitive to remap.
Environment
- macOS (Darwin 25.2.0)
- Shell: zsh
- Claude Code CLI
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗