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

Feature Request: Customizable Submit Keybinding (Cmd+Return instead of Return)

Open mtskf opened this issue 1 month ago • 1 comments

Feature Request

Summary

Add support for customizable submit keybinding, specifically the ability to use Cmd+Return (⌘+Return) instead of Return to submit chat messages in interactive mode.

Motivation

Many users are accustomed to using Cmd+Return for submitting messages in chat applications (Slack, Discord, Claude Web, etc.) where Return is used for line breaks. The current behavior in Claude Code CLI where Return submits the message can be disruptive for users who frequently need multi-line inputs or are accustomed to the Cmd+Return pattern.

Proposed Solution

Add a setting in ~/.claude/settings.json to customize the submit keybinding:

{
  "submitKey": "cmd+return"  // or "return" (default)
}

Or allow more flexible keybinding configuration:

{
  "keybindings": {
    "submit": "cmd+return",
    "newline": "return"
  }
}

Current Workarounds

  • Option+Enter for multi-line input (but doesn't change submit behavior)
  • \ + Enter for quick escape to multi-line
  • Terminal-level key remapping (complex and fragile)

Additional Context

  • Current behavior: Return = submit (fixed)
  • Desired behavior: Cmd+Return = submit, Return = newline (configurable)
  • This would align Claude Code CLI with the behavior of Claude Web and other modern chat applications

References

  • Claude Web has "Submit with Enter" toggle in settings
  • Similar feature requests in other CLI chat tools have been well-received

Thank you for considering this feature request!

mtskf avatar Jan 17 '26 00:01 mtskf

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/18492
  2. https://github.com/anthropics/claude-code/issues/18696
  3. https://github.com/anthropics/claude-code/issues/16576

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Jan 17 '26 00:01 github-actions[bot]

This issue has been automatically closed as a duplicate of #18492.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Jan 20 '26 09:01 github-actions[bot]

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.

github-actions[bot] avatar Jan 27 '26 14:01 github-actions[bot]