mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
fix: stop Ctrl+Shift+Enter from sending the message when Ctrl+Enter to Send is on (#31864)
This commit is contained in:
parent
1b2ceedd61
commit
41ca360ccf
1 changed files with 3 additions and 1 deletions
|
|
@ -2163,7 +2163,9 @@
|
|||
// either when Enter is pressed or when Ctrl+Enter is pressed.
|
||||
const enterPressed =
|
||||
($settings?.ctrlEnterToSend ?? false)
|
||||
? (e.key === 'Enter' || e.keyCode === 13) && isCtrlPressed
|
||||
? (e.key === 'Enter' || e.keyCode === 13) &&
|
||||
isCtrlPressed &&
|
||||
!e.shiftKey
|
||||
: (e.key === 'Enter' || e.keyCode === 13) && !e.shiftKey;
|
||||
|
||||
if (enterPressed) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue