claude-code
claude-code copied to clipboard
Keyboard Shortcut Improvements for Claude Code
The current keyboard shortcut implementation in Claude Code has inconsistencies with the Claude web interface and lacks expected terminal behavior, causing workflow disruptions and potential data loss.
Current Behavior
- Only "Esc" can be used to exit the current mode
- Pressing Ctrl+C puts Claude Code sometimes in an unstable state requiring restart and resulting in cache loss
- Ctrl+Return is interpreted as "send to Claude" instead of creating a new line
Expected Behavior
- Ctrl+C should function as an alternative exit command (in addition to Esc)
- Ctrl+C should not cause an unstable application state
- Ctrl+Return should create a new line, consistent with the Claude web interface
Impact
- Workflow disruption when muscle memory from web interface doesn't transfer
- Risk of data loss when forced to restart after Ctrl+C puts application in unstable state
- Reduced productivity due to inconsistent interface behaviors
Suggested Improvements
- Add Ctrl+C as an alternative exit command alongside Esc
- Fix application state handling when Ctrl+C is pressed
- Make Ctrl+Return create a new line instead of sending content to Claude