1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-02-14 20:11:52 +00:00

Fixed type button for guest sharing sessions, #3961

This commit is contained in:
Ylian Saint-Hilaire 2022-05-11 12:52:39 -07:00
parent 3eafe424f1
commit 0dab6de02d

View file

@ -288,7 +288,7 @@
var agentPresent = true;
var intelAmtPresent = false;
var deskAspectRatio = 0;
var desktopsettings = { encoding: 2, showfocus: false, showmouse: true, showcad: true, quality: 40, scaling: 1024, framerate: 100, localkeymap: false };
var desktopsettings = { encoding: 2, showfocus: false, showmouse: true, showcad: true, quality: 40, scaling: 1024, framerate: 100, localkeymap: false, remotekeymap: false };
var serverPublicNamePort = '{{{serverDnsName}}}:{{{serverPublicPort}}}';
var domain = '{{{domain}}}';
var domainUrl = '{{{domainurl}}}';
@ -1049,6 +1049,11 @@
}, 10);
} else {
// MeshAgent
if (desktopsettings.remotekeymap !== true) {
// New unicode typing
desktop.m.SendStringUnicode(txt);
} else {
// Old scan code typing. This is for non-unicode system.
for (var i in txt) {
var a = txt.charCodeAt(i), b = ltxt.charCodeAt(i);
if (((a >= 65) && (a <= 90)) || ((a >= 97) && (a <= 122))) {
@ -1069,6 +1074,7 @@
desktop.m.SendKeyMsgKC(x);
}
}
}
/*
// Show clipboard dialog