mirror of
https://github.com/open-webui/open-webui
synced 2025-03-04 11:29:59 +00:00
refac: allow image only message via enter
This commit is contained in:
parent
7e2b2ec761
commit
5d3249848d
@ -828,7 +828,11 @@
|
||||
}
|
||||
|
||||
// Submit the prompt when Enter key is pressed
|
||||
if (prompt !== '' && e.keyCode === 13 && !e.shiftKey) {
|
||||
if (
|
||||
(prompt !== '' || files.length > 0) &&
|
||||
e.keyCode === 13 &&
|
||||
!e.shiftKey
|
||||
) {
|
||||
dispatch('submit', prompt);
|
||||
}
|
||||
}
|
||||
@ -907,7 +911,11 @@
|
||||
}
|
||||
|
||||
// Submit the prompt when Enter key is pressed
|
||||
if (prompt !== '' && e.key === 'Enter' && !e.shiftKey) {
|
||||
if (
|
||||
(prompt !== '' || files.length > 0) &&
|
||||
e.key === 'Enter' &&
|
||||
!e.shiftKey
|
||||
) {
|
||||
dispatch('submit', prompt);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user