Skip to content

Commit a8cd564

Browse files
committed
fix skip ime composing
1 parent 4806498 commit a8cd564

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed
5.84 KB
Binary file not shown.

examples/server/webui/src/components/ChatScreen.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ export default function ChatScreen() {
228228
value={inputMsg}
229229
onChange={(e) => setInputMsg(e.target.value)}
230230
onKeyDown={(e) => {
231+
if (e.nativeEvent.isComposing || e.keyCode === 229) return;
231232
if (e.key === 'Enter' && e.shiftKey) return;
232233
if (e.key === 'Enter' && !e.shiftKey) {
233234
e.preventDefault();

0 commit comments

Comments
 (0)