Skip to content

Commit 7c18e8f

Browse files
jhroemerdanielroe
andauthored
fix: for ? allow access with modifiers (#809)
Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent 431c2c7 commit 7c18e8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)