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

Method getHeldKeys

packages/hotkeys/src/key-state-tracker.ts:197–199  ·  view source on GitHub ↗

* Gets an array of currently held key names. * * @returns Array of key names currently being pressed

()

Source from the content-addressed store, hash-verified

195 * @returns Array of key names currently being pressed
196 */
197 getHeldKeys(): Array<string> {
198 return this.store.state.heldKeys
199 }
200
201 /**
202 * Checks if a specific key is currently being held.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected