do not handle escape and enter

This commit is contained in:
Fendy Heryanto
2025-03-13 07:49:33 +00:00
parent 0683597f72
commit 6b785b04d8

View File

@@ -99,7 +99,7 @@ const onInputKeyDown = (e: KeyboardEvent) => {
return
}
if (
['ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageUp', 'PageDown', 'Delete', 'Backspace', 'Tab'].includes(e.key) ||
['ArrowLeft', 'ArrowRight', 'Enter', 'Escape', 'Home', 'End', 'PageUp', 'PageDown', 'Delete', 'Backspace', 'Tab'].includes(e.key) ||
e.ctrlKey ||
e.altKey ||
e.metaKey