feat(app): add "Send with Ctrl+Enter" option#13637
feat(app): add "Send with Ctrl+Enter" option#13637alexyaroshuk wants to merge 22 commits intoanomalyco:devfrom
Conversation
…huk/opencode into feat/break-line-hotkey
|
I would very much like to see this merged in as well, please. |
|
@adamdotdevin could you give this one a look? |
|
Does this setting still allow mobile web users to send a message via the Send button? There is currently no practical way for mobile users to type a newline on the web UI. The "Return" key always results in the partially formed message being immediately sent, even with Shift+Enter. |
# Conflicts: # packages/app/src/components/prompt-input.tsx # packages/app/src/context/settings.tsx
currently unable to test this |
|
This would be great addition. I hope can be merged soon. I don't know how many times I sent the prompt prematurely and cancel/reverted. Thanks! |
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.
Default is off (Enter sends, Shift+Enter adds newline).
How did you verify your code works?
Files changed
packages/app/src/context/settings.tsxsendWithModEnterboolean to general settingspackages/app/src/components/settings-general.tsxpackages/app/src/components/prompt-input.tsxpackages/app/src/i18n/*.ts(16 files)