function defineAppHotkeys<T>(definitions): DefinedAppHotkeys<T>;Defined in: app-hotkeys.ts:333
Declares every app hotkey up front, without registering any, so cheat sheets and settings screens can list hotkeys whose components have not mounted. Pass the result to HotkeysProvider as appHotkeys.
Spread the results of other defineAppHotkeys calls to combine declarations from several files. To pick declarations at runtime, call defineAppHotkeys in each branch: a union of declaration objects doesn't type-check.
T extends Record<string, AppHotkeyDeclaration>
ValidatedAppHotkeyInputs<T>
export const appHotkeys = defineAppHotkeys({
'doc.save': { hotkey: 'Mod+S', meta: { name: 'Save', group: 'Document' } },
'nav.home': { hotkey: ['G', 'H'], meta: { name: 'Go home' }, options: { timeout: 800 } },
'palette.open': { hotkey: null, meta: { name: 'Command palette' } },
})