authorgravatar for lucenz@proton.meSimone <lucenz@proton.me> 2026-09-07 00:48:46+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-06 15:48:46-07:00
log9c96ac25804de9f38cd19c57976fe73573efa005
tree9049b51f5a5659ab30d14728c28b2166e240b057
parent075a86e3b0152ea8f867ddd2c424739f5da08238
signature Signed by PGP key B5690EEEBB952194

fix(web): keep settings inputs focused during IME composition (#10262)

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>

1 files changed, 1 insertions(+), 0 deletions(-)

apps/web/src/hooks/useCommitOnBlur.ts+1
......@@ -34,6 +34,7 @@ export function useCommitOnBlur(value: string, onCommit: (next: string) => void)
3434 }
3535 },
3636 onKeyDown: (event: KeyboardEvent<HTMLInputElement>) => {
37 if (event.nativeEvent.isComposing || event.keyCode === 229) return;
3738 if (event.key === "Enter") {
3839 event.preventDefault();
3940 (event.target as HTMLInputElement).blur();