mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-13 07:53:20 -05:00
Fixes to remote desktop international keyboard support.
This commit is contained in:
parent
7eccf95755
commit
192844d29e
@ -541,11 +541,16 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
|
|||||||
}
|
}
|
||||||
obj.xxKeyDown = function (e) {
|
obj.xxKeyDown = function (e) {
|
||||||
if ((e.key != 'Dead') && (obj.State == 3)) {
|
if ((e.key != 'Dead') && (obj.State == 3)) {
|
||||||
if ((e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) { obj.SendKeyUnicode(obj.KeyAction.DOWN, e.key.charCodeAt(0)); } else { obj.SendKeyMsg(obj.KeyAction.DOWN, e); }
|
if (!((e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0)))) {
|
||||||
|
obj.SendKeyMsg(obj.KeyAction.DOWN, e);
|
||||||
|
if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false;
|
|
||||||
}
|
}
|
||||||
obj.xxKeyPress = function (e) {
|
obj.xxKeyPress = function (e) {
|
||||||
|
if ((e.key != 'Dead') && (obj.State == 3)) {
|
||||||
|
if ((e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) { obj.SendKeyUnicode(obj.KeyAction.DOWN, e.key.charCodeAt(0)); } //else { obj.SendKeyMsg(obj.KeyAction.DOWN, e); }
|
||||||
|
}
|
||||||
if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false;
|
if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user