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

Method destroy

packages/hotkeys/src/sequence-manager.ts:638–644  ·  view source on GitHub ↗

* Destroys the manager and removes all listeners.

()

Source from the content-addressed store, hash-verified

636 cancelable: true,
637 },
638 )
639
640 registration.triggerCount++
641 registration.hasFired = true
642
643 this.#syncRegistrationView(registration)
644
645 const context: HotkeyCallbackContext = {
646 hotkey: registration.sequence.join(' ') as Hotkey,
647 parsedHotkey: lastParsed,

Callers 1

resetInstanceMethod · 0.45

Calls 2

keysMethod · 0.80

Tested by

no test coverage detected