1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed remote desktop typing

This commit is contained in:
Ylian Saint-Hilaire 2020-11-18 17:03:49 -08:00
parent ac525bc408
commit 9fa5924c5d
4 changed files with 36 additions and 19 deletions

File diff suppressed because one or more lines are too long

View file

@ -403,6 +403,11 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
}
}
obj.SendStringUnicode = function (str) {
if (obj.State != 3) return;
for (var i = 0; i < str.length; i++) { obj.send(String.fromCharCode(0x00, obj.InputType.KEYUNICODE, 0x00, 0x07, 0) + ShortToStr(str.charCodeAt(i))); }
}
obj.SendKeyUnicode = function (action, val) {
if (obj.State != 3) return;
obj.send(String.fromCharCode(0x00, obj.InputType.KEYUNICODE, 0x00, 0x07, (action - 1)) + ShortToStr(val));