mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-55: Sync to local clipboard when client clipboardData changes.
This commit is contained in:
@@ -396,6 +396,10 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
|||||||
// Watch clipboard for new data, associating it with any pressed keys
|
// Watch clipboard for new data, associating it with any pressed keys
|
||||||
$scope.$watch('client.clipboardData', function clipboardChanged(data) {
|
$scope.$watch('client.clipboardData', function clipboardChanged(data) {
|
||||||
|
|
||||||
|
// Sync local clipboard as long as the menu is not open
|
||||||
|
if (!$scope.menu.shown)
|
||||||
|
clipboardService.setLocalClipboard(data);
|
||||||
|
|
||||||
// Associate new clipboard data with any currently-pressed key
|
// Associate new clipboard data with any currently-pressed key
|
||||||
for (var keysym in keysCurrentlyPressed)
|
for (var keysym in keysCurrentlyPressed)
|
||||||
clipboardDataFromKey[keysym] = data;
|
clipboardDataFromKey[keysym] = data;
|
||||||
|
Reference in New Issue
Block a user