fix(web): keep settings inputs focused during IME composition (#10262)
Co-authored-by: Simone <[email protected]>
This commit is contained in:
1 parent
075a86e3b0
commit
9c96ac2580
1 file changed
+1
@@ -34,6 +34,7 @@ export function useCommitOnBlur(value: string, onCommit: (next: string) => void)
|
||||
}
|
||||
},
|
||||
onKeyDown: (event: KeyboardEvent<HTMLInputElement>) => {
|
||||
if (event.nativeEvent.isComposing || event.keyCode === 229) return;
|
||||
if (event.key === "Enter") {
|
||||
event.preventDefault();
|
||||
(event.target as HTMLInputElement).blur();
|
||||
|
||||
Reference in new issue
Block a user