| 14 | } from '@tanstack/hotkeys' |
| 15 | |
| 16 | export interface CreateHotkeyOptions extends Omit<HotkeyOptions, 'target'> { |
| 17 | /** |
| 18 | * The DOM element to attach the event listener to. |
| 19 | * Can be a direct DOM element, an accessor (for reactive targets that become |
| 20 | * available after mount), or null. Defaults to document. |
| 21 | * When using scoped targets, pass an accessor: () => ({ target: elementSignal() }) |
| 22 | * so the hotkey waits for the element to be attached before registering. |
| 23 | */ |
| 24 | target?: HTMLElement | Document | Window | null |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * SolidJS primitive for registering a keyboard hotkey. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…