mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Make it so &debug=1 does not automatically send unicode keys in remote desktop.
This commit is contained in:
		
							parent
							
								
									870cc85de9
								
							
						
					
					
						commit
						6b19e2f818
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -580,7 +580,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
 | 
			
		|||
    obj.xxMouseWheel = function (e) { if (obj.State == 3) { obj.SendMouseMsg(obj.KeyAction.SCROLL, e); return false; } return true; }
 | 
			
		||||
    obj.xxKeyUp = function (e) {
 | 
			
		||||
        if ((e.key != 'Dead') && (obj.State == 3)) {
 | 
			
		||||
            if ((typeof e.key == 'string') && (e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) {
 | 
			
		||||
            if ((typeof e.key == 'string') && (e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && (obj.remoteKeyMap == false)) {
 | 
			
		||||
                obj.SendKeyUnicode(obj.KeyAction.UP, e.key.charCodeAt(0));
 | 
			
		||||
            } else {
 | 
			
		||||
                obj.SendKeyMsg(obj.KeyAction.UP, e);
 | 
			
		||||
| 
						 | 
				
			
			@ -590,7 +590,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
 | 
			
		|||
    }
 | 
			
		||||
    obj.xxKeyDown = function (e) {
 | 
			
		||||
        if ((e.key != 'Dead') && (obj.State == 3)) {
 | 
			
		||||
            if (!((typeof e.key == 'string') && (e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0)))) {
 | 
			
		||||
            if (!((typeof e.key == 'string') && (e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && (obj.remoteKeyMap == false))) {
 | 
			
		||||
                obj.SendKeyMsg(obj.KeyAction.DOWN, e);
 | 
			
		||||
                if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			@ -598,7 +598,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
 | 
			
		|||
    }
 | 
			
		||||
    obj.xxKeyPress = function (e) {
 | 
			
		||||
        if ((e.key != 'Dead') && (obj.State == 3)) {
 | 
			
		||||
            if ((typeof e.key == 'string') && (e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) {
 | 
			
		||||
            if ((typeof e.key == 'string') && (e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && (obj.remoteKeyMap == false)) {
 | 
			
		||||
                obj.SendKeyUnicode(obj.KeyAction.DOWN, e.key.charCodeAt(0));
 | 
			
		||||
            } // else { obj.SendKeyMsg(obj.KeyAction.DOWN, e); }
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue