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

Keyboard Shortcut Improvements for Claude Code

Open freiit opened this issue 11 months ago • 8 comments

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

  1. Only "Esc" can be used to exit the current mode
  2. Pressing Ctrl+C puts Claude Code sometimes in an unstable state requiring restart and resulting in cache loss
  3. Ctrl+Return is interpreted as "send to Claude" instead of creating a new line

Expected Behavior

  1. Ctrl+C should function as an alternative exit command (in addition to Esc)
  2. Ctrl+C should not cause an unstable application state
  3. 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

  1. Add Ctrl+C as an alternative exit command alongside Esc
  2. Fix application state handling when Ctrl+C is pressed
  3. Make Ctrl+Return create a new line instead of sending content to Claude

freiit avatar Feb 26 '25 14:02 freiit