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

Method callback

examples/lit/hotkey-sequence-recorder/src/app.ts:179–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 if (shortcut.sequence.length === 0) continue
178
179 const callback: HotkeyCallback = () => {
180 console.log(`${shortcut.name} triggered:`, shortcut.sequence)
181 }
182
183 const reg = manager.register(shortcut.sequence, callback, {
184 target: document,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected