MCPcopy Create free account
hub / github.com/apache/cloudstack / getRFBkeycode

Function getRFBkeycode

systemvm/agent/noVNC/core/rfb.js:3248–3255  ·  view source on GitHub ↗
(xtScanCode)

Source from the content-addressed store, hash-verified

3246
3247 QEMUExtendedKeyEvent(sock, keysym, down, keycode) {
3248 function getRFBkeycode(xtScanCode) {
3249 const upperByte = (keycode >> 8);
3250 const lowerByte = (keycode & 0x00ff);
3251 if (upperByte === 0xe0 && lowerByte < 0x7f) {
3252 return lowerByte | 0x80;
3253 }
3254 return xtScanCode;
3255 }
3256
3257 sock.sQpush8(255); // msg-type
3258 sock.sQpush8(0); // sub msg-type

Callers 1

QEMUExtendedKeyEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected