GUAC-1480: Fix broken menu clipboard regression.

This commit is contained in:
James Muehlner committed 2016-02-08 21:39:58 -08:00
1 parent 1564aeed87
commit a492e2a8f3
2 files changed
+9 -6

No files matched your search

@@ -413,11 +413,9 @@ angular.module('client').directive('guacClient', [function guacClient() {
};
// Update remote clipboard if local clipboard changes
$scope.$on('guacClipboard', function onClipboard(event, mimetype, data) {
if (client && data !== $scope.client.clipboardData) {
$scope.$watch('client.clipboardData', function clipboardChanged(data) {
if (client)
client.setClipboard(data);
$scope.client.clipboardData = data;
}
});
// Translate local keydown events to remote keydown events if keyboard is enabled