From da2569bb777d550a6e45eea3458f1cbc8fc2399f Mon Sep 17 00:00:00 2001 From: Fendi <937601471@qq.com> Date: Mon, 9 Mar 2026 04:40:31 +0800 Subject: [PATCH] fix(web): prevent Enter key from sending message during IME composition (#715) Co-authored-by: Zaki Manian --- src/channels/web/static/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channels/web/static/app.js b/src/channels/web/static/app.js index 68b803f9..87c83ede 100644 --- a/src/channels/web/static/app.js +++ b/src/channels/web/static/app.js @@ -1481,7 +1481,7 @@ chatInput.addEventListener('keydown', (e) => { } } - if (e.key === 'Enter' && !e.shiftKey) { + if (e.key === 'Enter' && !e.shiftKey && !e.isComposing) { e.preventDefault(); hideSlashAutocomplete(); sendMessage();