* @param {KeyboardEvent} evt - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent
(evt)
| 197 | * @param {KeyboardEvent} evt - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent |
| 198 | */ |
| 199 | function 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 | |
| 212 | function setCursor(cursor, save = true) { |
| 213 | // Ensure the correct cursor option displays as active in the navbar. |
no test coverage detected