MCPcopy Index your code
hub / github.com/tiny-pilot/tinypilot / isKeyPressed

Method isKeyPressed

app/static/js/keyboardstate.js:26–30  ·  view source on GitHub ↗

* @param {string} canonicalCode - The canonical key code. * @returns {boolean}

(canonicalCode)

Source from the content-addressed store, hash-verified

24 * @returns {boolean}
25 */
26 isKeyPressed(canonicalCode) {
27 return (
28 canonicalCode in this._isKeyPressed && this._isKeyPressed[canonicalCode]
29 );
30 }
31
32 /**
33 * @param {KeyboardEvent} evt - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent

Callers 3

isIgnoredKeystrokeFunction · 0.80
onKeyDownFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected