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

Function onKeyUp

app/static/js/app.js:199–210  ·  view source on GitHub ↗

* @param {KeyboardEvent} evt - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent

(evt)

Source from the content-addressed store, hash-verified

197 * @param {KeyboardEvent} evt - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent
198 */
199function onKeyUp(evt) {
200 const canonicalCode = keystrokeToCanonicalCode(evt);
201 keyboardState.onKeyUp(evt);
202
203 if (!connectedToServer) {
204 return;
205 }
206
207 if (isModifierCode(canonicalCode)) {
208 socket.emit("keyRelease");
209 }
210}
211
212function setCursor(cursor, save = true) {
213 // Ensure the correct cursor option displays as active in the navbar.

Callers 1

app.jsFile · 0.85

Calls 3

keystrokeToCanonicalCodeFunction · 0.90
isModifierCodeFunction · 0.90
onKeyUpMethod · 0.80

Tested by

no test coverage detected