mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-30 00:23:21 +00:00 
			
		
		
		
	Merge pull request #330 from glyptodon/fix-clipboard-reset
GUAC-1480: Fix handling of clipboard changes.
This commit is contained in:
		| @@ -379,11 +379,6 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams | |||||||
|  |  | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     // Update remote clipboard if local clipboard changes |  | ||||||
|     $scope.$on('guacClipboard', function onClipboard(event, mimetype, data) { |  | ||||||
|         $scope.client.clipboardData = data; |  | ||||||
|     }); |  | ||||||
|  |  | ||||||
|     $scope.$on('guacKeydown', function keydownListener(event, keysym, keyboard) { |     $scope.$on('guacKeydown', function keydownListener(event, keysym, keyboard) { | ||||||
|         keysCurrentlyPressed[keysym] = true;    |         keysCurrentlyPressed[keysym] = true;    | ||||||
|          |          | ||||||
|   | |||||||
| @@ -413,9 +413,11 @@ angular.module('client').directive('guacClient', [function guacClient() { | |||||||
|             }; |             }; | ||||||
|  |  | ||||||
|             // Update remote clipboard if local clipboard changes |             // Update remote clipboard if local clipboard changes | ||||||
|             $scope.$watch('client.clipboardData', function clipboardChanged(data) { |             $scope.$on('guacClipboard', function onClipboard(event, mimetype, data) { | ||||||
|                 if (client) |                 if (client) { | ||||||
|                     client.setClipboard(data); |                     client.setClipboard(data); | ||||||
|  |                     $scope.client.clipboardData = data; | ||||||
|  |                 } | ||||||
|             }); |             }); | ||||||
|  |  | ||||||
|             // Translate local keydown events to remote keydown events if keyboard is enabled |             // Translate local keydown events to remote keydown events if keyboard is enabled | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user