From eddfaf10a6f2d40e6f1d26d080e9a5b291e27a88 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2026 09:42:57 +1100 Subject: [PATCH] fix(frontend): ignore Enter during IME composition (#13122) (#13123) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 86b6c5fbfc5f57c906f695bd98228ff9b4980018) Co-authored-by: マサハル電機 Co-authored-by: TSUBASA <246341638+highvoltagescientist-arch@users.noreply.github.com> --- src/frontend/src/components/forms/fields/TextField.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/components/forms/fields/TextField.tsx b/src/frontend/src/components/forms/fields/TextField.tsx index d1b887cba9..ab6f952f04 100644 --- a/src/frontend/src/components/forms/fields/TextField.tsx +++ b/src/frontend/src/components/forms/fields/TextField.tsx @@ -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 && (