mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-18 04:43:55 +00:00
refac
This commit is contained in:
parent
b1e876896c
commit
9d0aa791ad
1 changed files with 3 additions and 0 deletions
|
|
@ -1077,6 +1077,9 @@
|
|||
}}
|
||||
on:keydown={async (e) => {
|
||||
e = e.detail.event;
|
||||
// IME confirmation must finish before a shortcut can send and clear the editor.
|
||||
if (e.isComposing || e.keyCode === 229 || inputEditor?.view.composing) return;
|
||||
|
||||
const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac
|
||||
|
||||
const suggestionsContainerElement =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue