MCPcopy Create free account
hub / github.com/TanStack/hotkeys / CreateHotkeyDefinition

Interface CreateHotkeyDefinition

packages/solid-hotkeys/src/createHotkeys.ts:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 * A single hotkey definition for use with `createHotkeys`.
18 */
19export interface CreateHotkeyDefinition {
20 /** The hotkey string (e.g., 'Mod+S', 'Escape') or RawHotkey object */
21 hotkey: RegisterableHotkey
22 /** The function to call when the hotkey is pressed */
23 callback: HotkeyCallback
24 /** Per-hotkey options (merged on top of commonOptions) */
25 options?: CreateHotkeyOptions
26}
27
28/**
29 * SolidJS primitive for registering multiple keyboard hotkeys at once.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…