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

Method isAnyKeyHeld

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

* Checks if any of the given keys are currently held. * * @param keys - Array of key names to check * @returns True if any of the keys are currently held

(keys: Array<string>)

Source from the content-addressed store, hash-verified

216 * @returns True if any of the keys are currently held
217 */
218 isAnyKeyHeld(keys: Array<string>): boolean {
219 return keys.some((key) => this.isKeyHeld(key))
220 }
221
222 /**
223 * Checks if all of the given keys are currently held.

Callers 1

Calls 1

isKeyHeldMethod · 0.95

Tested by

no test coverage detected