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

Method areAllKeysHeld

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

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

(keys: Array<string>)

Source from the content-addressed store, hash-verified

226 * @returns True if all of the keys are currently held
227 */
228 areAllKeysHeld(keys: Array<string>): boolean {
229 return keys.every((key) => this.isKeyHeld(key))
230 }
231
232 /**
233 * Destroys the tracker and removes all listeners.

Callers 1

Calls 1

isKeyHeldMethod · 0.95

Tested by

no test coverage detected