fix(frontend): ignore Enter during IME composition (#13122) (#13123)

(cherry picked from commit 86b6c5fbfc)

Co-authored-by: マサハル電機 <highvoltagescientist@gmail.com>
Co-authored-by: TSUBASA <246341638+highvoltagescientist-arch@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-10-29 09:42:57 +11:00
1 parent 071e1e481f
commit eddfaf10a6
1 file changed
+8 -1
@@ -76,7 +76,14 @@ function TextField({
// Bypass debounce on enter key
onTextChange(event.currentTarget.value);
}
onKeyDown(event.code);
// Do not submit the form when Enter is used to confirm IME input.
// Some browsers report keyCode 229 even when isComposing is false.
const isComposing =
event.nativeEvent.isComposing || event.nativeEvent.keyCode === 229;
if (!isComposing) {
onKeyDown(event.code);
}
}}
rightSection={
placeholderAutofill && (