useDuxtShortcuts()
The keys the theme listens to.
Signature
const shortcuts = useDuxtShortcuts();
onDuxtShortcut('k', () => open());
Notes
The one place that knows which keys are bound, so the overlay on ? and the
handlers cannot disagree. onDuxtShortcut() beside it binds one key with the
guards every binding needs — including never firing while the reader is typing.
Was this page helpful?