mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added support for unicode keys in desktop multiplexor.
This commit is contained in:
parent
ceefca2c20
commit
680a82a431
2 changed files with 14 additions and 11 deletions
|
@ -521,6 +521,9 @@ function CreateDesktopMultiplexor(parent, domain, nodeid, func) {
|
|||
break;
|
||||
case 14: // Touch setup
|
||||
break;
|
||||
case 85: // Unicode Key Events, forward to agent
|
||||
obj.sendToAgent(data);
|
||||
break;
|
||||
default:
|
||||
console.log('Un-handled viewer command: ' + command);
|
||||
break;
|
||||
|
|
|
@ -1519,7 +1519,7 @@
|
|||
}
|
||||
|
||||
// Enable browser clipboard read if supported
|
||||
QV('DeskClipboardInButton', navigator.clipboard.readText != null);
|
||||
QV('DeskClipboardInButton', (navigator.clipboard != null) && (navigator.clipboard.readText != null));
|
||||
|
||||
// Session Refresh Timer
|
||||
if (sessionTime >= 10) { sessionRefreshTimer = setTimeout(refreshCookieSession, Math.round((sessionTime * 60000) * 0.8)); }
|
||||
|
@ -2197,7 +2197,7 @@
|
|||
if ((message.tag == 1) && (xxdialogTag == 'clipboard')) {
|
||||
Q('d2clipText').value = message.data; // Put remote clipboard data into dialog box
|
||||
} else if (message.tag == 2) {
|
||||
navigator.clipboard.writeText(message.data).then(function() { console.log('ok'); }).catch(function(err) { console.log(err); }) // Put remote clipboard data into our clipboard
|
||||
if (navigator.clipboard != null) { navigator.clipboard.writeText(message.data).then(function() { console.log('ok'); }).catch(function(err) { console.log(err); }) } // Put remote clipboard data into our clipboard
|
||||
}
|
||||
} else if ((message.type == 'setclip') && (xxdialogTag == 'clipboard') && (currentNode != null) && (currentNode._id == message.nodeid)) {
|
||||
// Display success/fail on the clipboard dialog box.
|
||||
|
@ -6189,7 +6189,7 @@
|
|||
}
|
||||
|
||||
function deskClipboardOutFunction() {
|
||||
if (navigator.clipboard.readText) { navigator.clipboard.readText().then(function(text) { meshserver.send({ action: 'msg', type: 'setclip', nodeid: currentNode._id, data: text }); }).catch(function(err) { }); }
|
||||
if ((navigator.clipboard != null) && (navigator.clipboard.readText != null)) { navigator.clipboard.readText().then(function(text) { meshserver.send({ action: 'msg', type: 'setclip', nodeid: currentNode._id, data: text }); }).catch(function(err) { }); }
|
||||
}
|
||||
|
||||
function deskRefreshFunction() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue