mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
GUAC-1480: Don't set the clipboard state if it hasn't changed.
This commit is contained in:
@@ -414,8 +414,10 @@ angular.module('client').directive('guacClient', [function guacClient() {
|
|||||||
|
|
||||||
// Update remote clipboard if local clipboard changes
|
// Update remote clipboard if local clipboard changes
|
||||||
$scope.$on('guacClipboard', function onClipboard(event, mimetype, data) {
|
$scope.$on('guacClipboard', function onClipboard(event, mimetype, data) {
|
||||||
if (client)
|
if (client && data !== $scope.client.clipboardData) {
|
||||||
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