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

Interface CreateHotkeyOptions

packages/solid-hotkeys/src/createHotkey.ts:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14} from '@tanstack/hotkeys'
15
16export 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.

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…