User input fix.

This commit is contained in:
Ylian Saint-Hilaire 2021-04-28 17:05:40 -07:00
parent eb44851161
commit 0c8a8d73f6

View File

@ -398,7 +398,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
}
// Send remote input lock. 0 = Unlock, 1 = Lock, 2 = Query
obj.SendRemoteInputLock = function (code) { obj.send(String.fromCharCode(0x00, obj.InputType.KEYUNICODE, 0x00, 0x05, code)); }
obj.SendRemoteInputLock = function (code) { obj.send(String.fromCharCode(0x00, 87, 0x00, 0x05, code)); }
obj.SendMessage = function (msg) {
if (obj.State == 3) obj.send(String.fromCharCode(0x00, 0x11) + obj.shortToStr(4 + msg.length) + msg); // 0x11 = 17 MNG_KVM_MESSAGE