fix: Keyboard handlers should not be considered while composing

This commit is contained in:
Tom Moor
2023-07-04 11:28:05 -04:00
parent 29db1ef1bf
commit e6e9512979
4 changed files with 19 additions and 1 deletions

View File

@@ -45,6 +45,10 @@ function InputSearchPage({
const handleKeyDown = React.useCallback(
(ev: React.KeyboardEvent<HTMLInputElement>) => {
if (ev.nativeEvent.isComposing) {
return;
}
if (ev.key === "Enter") {
ev.preventDefault();
history.push(