Skip to content

feat(app): add "Send with Ctrl+Enter" option#13637

Open
alexyaroshuk wants to merge 22 commits intoanomalyco:devfrom
alexyaroshuk:feat/break-line-hotkey
Open

feat(app): add "Send with Ctrl+Enter" option#13637
alexyaroshuk wants to merge 22 commits intoanomalyco:devfrom
alexyaroshuk:feat/break-line-hotkey

Conversation

@alexyaroshuk
Copy link
Copy Markdown
Contributor

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

@alexyaroshuk alexyaroshuk marked this pull request as ready for review February 14, 2026 20:08
@philipmat
Copy link
Copy Markdown

I would very much like to see this merged in as well, please.

@alexyaroshuk
Copy link
Copy Markdown
Contributor Author

@adamdotdevin could you give this one a look?

@alexchandel
Copy link
Copy Markdown

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
@alexyaroshuk
Copy link
Copy Markdown
Contributor Author

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.

currently unable to test this

@ualtinok
Copy link
Copy Markdown
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is there any way to use enter to send newline, and ctrl+enter to send message.

4 participants