mirror of https://github.com/open-webui/open-webui
commit
61287a16d5
|
@ -828,7 +828,12 @@
|
|||
e.preventDefault();
|
||||
}
|
||||
|
||||
if (e.key === 'Enter' && !e.shiftKey && prompt !== '') {
|
||||
const commandOptionButton = [
|
||||
...document.getElementsByClassName('selected-command-option-button')
|
||||
]?.at(-1);
|
||||
|
||||
if (!commandOptionButton) {
|
||||
if (e.key === 'Enter' && !e.shiftKey && prompt !== '' && selected) {
|
||||
submitPrompt(prompt, user);
|
||||
return;
|
||||
}
|
||||
|
@ -837,6 +842,7 @@
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac
|
||||
|
||||
|
|
Loading…
Reference in New Issue