From fe3af51d40bb630b17357f8b5e123a03b4e042e1 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 15 Apr 2021 15:38:38 -0700 Subject: [PATCH] Started work on login token. --- public/scripts/agent-desktop-0.0.2.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/scripts/agent-desktop-0.0.2.js b/public/scripts/agent-desktop-0.0.2.js index a41e0d5f..5739b97c 100644 --- a/public/scripts/agent-desktop-0.0.2.js +++ b/public/scripts/agent-desktop-0.0.2.js @@ -407,7 +407,10 @@ 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))); } + for (var i = 0; i < str.length; i++) { + obj.send(String.fromCharCode(0x00, obj.InputType.KEYUNICODE, 0x00, 0x07, 0) + ShortToStr(str.charCodeAt(i))); + obj.send(String.fromCharCode(0x00, obj.InputType.KEYUNICODE, 0x00, 0x07, 1) + ShortToStr(str.charCodeAt(i))); + } } obj.SendKeyUnicode = function (action, val) {