mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1480: Fix broken menu clipboard regression.
This commit is contained in:
@@ -379,6 +379,11 @@ 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) {
|
||||
keysCurrentlyPressed[keysym] = true;
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user