cmd+backspace in multi-line chat input deletes all lines instead of current line
Status Fixed / completed
Maintainer reply ✓ Yes — mhegazy
Workaround ✓ Mentioned in description ↑
Activity 7 comments · opened Apr 17, 2026 · closed Apr 18, 2026
💡 Likely answer: A maintainer (mhegazy, contributor)
responded on this thread — see the highlighted reply below.
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
7 Comments
Found 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
been burned by this so many times today!!!
Same here. 😡
Also
Ctrl+U. Very annoying when this is a standard command specifically to delete lines. Just learned aboutCtrl+Yto restore deleted prompt, but I've had to re-type thorough responses. We at least need achat:clearLineto change the binding back and/or revert the default binding back and keepchat:clearInputfor those that for some reason wanted this.Dupe #49313
Apparently fix incoming
Duplicate of #49313 ‚fixed in https://github.com/anthropics/claude-code/releases/tag/v2.1.113.
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.