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

Function TestComponent

packages/solid-hotkeys/tests/createHotkey.test.tsx:21–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 const addEventListenerSpy = vi.spyOn(document, 'addEventListener')
20
21 const TestComponent: Component = () => {
22 createHotkey('Mod+S', callback, { platform: 'mac' })
23 return null
24 }
25
26 render(() => <TestComponent />)
27

Callers

nothing calls this directly

Calls 2

createHotkeyFunction · 0.90
enabledFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…