[PR #13637] feat(app): add "Send with Ctrl+Enter" option #14750

Open
opened 2026-02-16 18:19:31 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13637

State: open
Merged: No


What does this PR do?

closes #11898
Adds a new setting that allows users to send messages using Ctrl+Enter (or Cmd+Enter on Mac) instead of the default Enter key. When enabled, Enter inserts a newline and Ctrl+Enter sends the message.

image

Default is off (Enter sends, Shift+Enter adds newline).

How did you verify your code works?

  1. bun test
  2. manual test

Files changed

Files Changed Description
packages/app/src/context/settings.tsx Added sendWithModEnter boolean to general settings
packages/app/src/components/settings-general.tsx Added Input section with toggle switch
packages/app/src/components/prompt-input.tsx Added keybind handling for Ctrl+Enter
packages/app/src/i18n/*.ts (16 files) Added localization keys for new setting
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13637 **State:** open **Merged:** No --- ### What does this PR do? closes #11898 Adds a new setting that allows users to send messages using Ctrl+Enter (or Cmd+Enter on Mac) instead of the default Enter key. When enabled, Enter inserts a newline and Ctrl+Enter sends the message. <img width="715" height="141" alt="image" src="https://github.com/user-attachments/assets/82674b5c-5bdb-41cb-b39b-aff4b4373095" /> Default is off (Enter sends, Shift+Enter adds newline). ### How did you verify your code works? 1. bun test 2. manual test ### Files changed | Files Changed | Description | |---------------|-------------| | `packages/app/src/context/settings.tsx` | Added `sendWithModEnter` boolean to general settings | | `packages/app/src/components/settings-general.tsx` | Added Input section with toggle switch | | `packages/app/src/components/prompt-input.tsx` | Added keybind handling for Ctrl+Enter | | `packages/app/src/i18n/*.ts` (16 files) | Added localization keys for new setting |
yindo added the pull-request label 2026-02-16 18:19:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14750