mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
fix: #2751
This commit is contained in:
parent
fddf693dad
commit
16e72b2f67
@ -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
Block a user