We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35f16f0 commit 09bd874Copy full SHA for 09bd874
packages/core/src/hotkeys/useHotkey.ts
@@ -56,8 +56,9 @@ export const useHotkey = (
56
.reduce((a, b) => a || b, false);
57
58
if (partialMatch) {
59
- if (pressedKeys.current.length > 1 || !/^[a-zA-Z]$/.test(e.key)) {
+ if (pressedKeys.current.length > 1 || !/^[a-zA-Z\s]$/.test(e.key)) {
60
// Prevent default, but not if this is the first input and a letter (which should trigger a search)
61
+ // also not on first input and spacebar, as that should trigger an item directly
62
e.preventDefault();
63
}
64
0 commit comments