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

Function dispatchKeydown

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

Source from the content-addressed store, hash-verified

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

Callers 1

hotkey.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…