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

Function dispatchKey

packages/solid-hotkeys/tests/createHotkeySequences.test.tsx:10–12  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

8import type { CreateHotkeySequenceDefinition } from '../src/createHotkeySequences'
9
10function dispatchKey(key: string) {
11 document.dispatchEvent(new KeyboardEvent('keydown', { key, bubbles: true }))
12}
13
14describe('createHotkeySequences', () => {
15 beforeEach(() => {

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…