mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-29 08:31:48 -05:00
fix: stop Ctrl+Shift+Enter from sending the message when Ctrl+Enter to Send is on (#31864)
This commit is contained in:
1 file changed
+3
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user