mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixes to user imput locking.
This commit is contained in:
parent
0c8a8d73f6
commit
ee3581aa31
2 changed files with 4 additions and 3 deletions
|
@ -216,6 +216,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
|
|||
}
|
||||
}
|
||||
|
||||
console.log('cmd', cmd);
|
||||
switch (cmd) {
|
||||
case 3: // Tile
|
||||
if (obj.FirstDraw) obj.onResize();
|
||||
|
@ -273,7 +274,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
|
|||
break;
|
||||
case 87: // MNG_KVM_INPUT_LOCK
|
||||
if (cmdsize != 5) break;
|
||||
if (obj.RemoteInputLock != (view[4] != 0)) {
|
||||
if ((obj.RemoteInputLock == null) || (obj.RemoteInputLock !== (view[4] != 0))) {
|
||||
obj.RemoteInputLock = (view[4] != 0);
|
||||
if (obj.onRemoteInputLockChanged) { obj.onRemoteInputLockChanged(obj, obj.RemoteInputLock); }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue