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

Function TestComponent

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

Source from the content-addressed store, hash-verified

22 const undoCb = vi.fn()
23
24 const TestComponent: Component = () => {
25 createHotkeys([
26 { hotkey: 'Mod+S', callback: saveCb, options: { platform: 'mac' } },
27 { hotkey: 'Mod+Z', callback: undoCb, options: { platform: 'mac' } },
28 ])
29 return null
30 }
31
32 render(() => <TestComponent />)
33

Callers

nothing calls this directly

Calls 2

createHotkeysFunction · 0.90
enabledFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…