Skip to content

Commit 408beb9

Browse files
jhroemerdanielroe
authored andcommitted
fix: for ? allow access with modifiers (npmx-dev#809)
Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent f8cc396 commit 408beb9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/app.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ function handleGlobalKeydown(e: KeyboardEvent) {
6969
router.push('/search')
7070
}
7171
72-
if (isKeyWithoutModifiers(e, '?')) {
72+
// For "?" we check the key property directly since it's usually combined with shift
73+
if (e.key === '?') {
7374
e.preventDefault()
7475
showKbdHints.value = true
7576
}

0 commit comments

Comments
 (0)