Skip to content
duxt

DuxtShortcuts

The keyboard shortcut sheet, on ?.

The overlay listing every key the theme binds, opened with ? or with DuxtShortcutsTrigger, the keyboard button in the header.

Usage

<DuxtShortcuts />

API

No props.

Notes

Its list is duxtShortcuts — the same array the handlers match against — so the sheet cannot come to advertise a key that nothing binds. See useDuxtShortcuts().

Its open state is useDuxtShortcutSheet() rather than a ref of its own, because the trigger has to reach the same boolean — and on a site with shortcuts.singleCharacter: false the trigger is the only thing that can open it at all, since there is no ? binding left. Mount it once per layout; a second instance would be a second dialog answering the same key. See Keyboard shortcuts.

Was this page helpful?