Skip to content

Commit 8f7adcf

Browse files
committed
fix(web): keep settings inputs focused during IME composition
1 parent eee0557 commit 8f7adcf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/web/src/hooks/useCommitOnBlur.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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();

0 commit comments

Comments
 (0)