mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-11-04 02:53:22 +00:00 
			
		
		
		
	GUAC-1480: Consume 'guacClipboard' events ONLY in guacClient directive. Use 'guacClipboard' events as the sole source of clipboard data - do not scope watch.
This commit is contained in:
		@@ -413,9 +413,11 @@ angular.module('client').directive('guacClient', [function guacClient() {
 | 
			
		||||
            };
 | 
			
		||||
 | 
			
		||||
            // Update remote clipboard if local clipboard changes
 | 
			
		||||
            $scope.$watch('client.clipboardData', function clipboardChanged(data) {
 | 
			
		||||
                if (client)
 | 
			
		||||
            $scope.$on('guacClipboard', function onClipboard(event, mimetype, data) {
 | 
			
		||||
                if (client) {
 | 
			
		||||
                    client.setClipboard(data);
 | 
			
		||||
                    $scope.client.clipboardData = data;
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
            // Translate local keydown events to remote keydown events if keyboard is enabled
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user