Fix: Prevent auto-send when pressing Enter with a non-English input method (#700)

This commit is contained in:
Wabifocus 2025-08-25 04:00:50 -07:00 committed by GitHub
parent 579cde8ff3
commit 8aab59165d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -188,7 +188,7 @@ function toastFetchError(text, error) {
globalThis.toastFetchError = toastFetchError;
chatInput.addEventListener("keydown", (e) => {
if (e.key === "Enter" && !e.shiftKey) {
if (e.key === "Enter" && !e.shiftKey && !e.isComposing && e.keyCode !== 229) {
e.preventDefault();
sendMessage();
}