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

Function dispatchKeydown

packages/lit-hotkeys/tests/hotkey-sequence.spec.ts:27–34  ·  view source on GitHub ↗
(
  target: EventTarget,
  init: KeyboardEventInit,
)

Source from the content-addressed store, hash-verified

25}
26
27function dispatchKeydown(
28 target: EventTarget,
29 init: KeyboardEventInit,
30): KeyboardEvent {
31 const event = new KeyboardEvent('keydown', { ...init, bubbles: true })
32 target.dispatchEvent(event)
33 return event
34}
35
36function dispatchKeyup(
37 target: EventTarget,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…