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

Function useHeldKeys

packages/react-hotkeys/src/useHeldKeys.ts:26–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 * ```
25 */
26export function useHeldKeys(): Array<string> {
27 const tracker = getKeyStateTracker()
28 return useSelector(tracker.store, (state) => state.heldKeys)
29}

Callers 3

AppFunction · 0.90
ShortcutListItemFunction · 0.90
ShortcutListItemFunction · 0.90

Calls 1

getKeyStateTrackerFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…