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

Method _handleLedEvent

systemvm/agent/noVNC/core/rfb.js:3035–3048  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3033 }
3034
3035 _handleLedEvent() {
3036 if (this._sock.rQwait("LED status", 1)) {
3037 return false;
3038 }
3039
3040 let data = this._sock.rQshift8();
3041 // ScrollLock state can be retrieved with data & 1. This is currently not needed.
3042 let numLock = data & 2 ? true : false;
3043 let capsLock = data & 4 ? true : false;
3044 this._remoteCapsLock = capsLock;
3045 this._remoteNumLock = numLock;
3046
3047 return true;
3048 }
3049
3050 _handleExtendedDesktopSize() {
3051 if (this._sock.rQwait("ExtendedDesktopSize", 4)) {

Callers 1

_handleRectMethod · 0.95

Calls 2

rQwaitMethod · 0.80
rQshift8Method · 0.80

Tested by

no test coverage detected