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.
2 parents ece1544 + 824bba9 commit 8443e92Copy full SHA for 8443e92
src/components/Nav/Menu/useNavMenu.ts
@@ -18,7 +18,7 @@ export const useNavMenu = (sections: NavSections) => {
18
19
// Focus corresponding nav section when number keys pressed
20
useEventListener("keydown", (event) => {
21
- if (!document || !event.key.match(/[1-9]/) || isModified(event)) return
+ if (!document || !event.key.match(/^[1-9]$/) || isModified(event)) return
22
if (event.target instanceof HTMLInputElement) return
23
if (event.target instanceof HTMLTextAreaElement) return
24
if (event.target instanceof HTMLSelectElement) return
0 commit comments