mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-18 12:57:47 +01:00
fix: fix the Enter issue of Chinese input
This commit is contained in:
@@ -1130,7 +1130,7 @@
|
|||||||
return res;
|
return res;
|
||||||
}}
|
}}
|
||||||
oncompositionstart={() => (isComposing = true)}
|
oncompositionstart={() => (isComposing = true)}
|
||||||
oncompositionend={() => (isComposing = false)}
|
oncompositionend={() => setTimeout(() => (isComposing = false))}
|
||||||
on:keydown={async (e) => {
|
on:keydown={async (e) => {
|
||||||
e = e.detail.event;
|
e = e.detail.event;
|
||||||
|
|
||||||
@@ -1341,7 +1341,7 @@
|
|||||||
command = getCommand();
|
command = getCommand();
|
||||||
}}
|
}}
|
||||||
on:compositionstart={() => (isComposing = true)}
|
on:compositionstart={() => (isComposing = true)}
|
||||||
on:compositionend={() => (isComposing = false)}
|
on:compositionend={() => setTimeout(() => (isComposing = false))}
|
||||||
on:keydown={async (e) => {
|
on:keydown={async (e) => {
|
||||||
const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac
|
const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user