Skip to content

Commit 97483b7

Browse files
authored
fix: focus settings toggle when opening with keyboard shortcut (npmx-dev#186)
1 parent fb79d40 commit 97483b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/components/SettingsMenu.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ onKeyStroke(',', e => {
3939
return
4040
}
4141
e.preventDefault()
42-
toggle()
42+
triggerRef.value?.focus()
43+
triggerRef.value?.click()
4344
})
4445
</script>
4546

0 commit comments

Comments
 (0)