We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d16c815 commit 6b19fcfCopy full SHA for 6b19fcf
frontend/src/hooks/withKeyboard.ts
@@ -23,8 +23,9 @@ function withKeyboard(action: (command: string) => void) {
23
return
24
} // some element is selected (typing)
25
26
- event.preventDefault() // prevent scroll on space in case of scrollable page
27
const key = event.key
+ if (key == ' ') event.preventDefault() // prevent scroll on space in case of scrollable page
28
+
29
if (key == 'Escape') {
30
setCommand('')
31
} else if (key == 'Enter' || key == ' ') {
0 commit comments