GUACAMOLE-55: Do not sync local clipboard if menu is open.

This commit is contained in:
Michael Jumper
2016-06-29 19:36:39 -07:00
parent 0679c10187
commit b55c4c0211

View File

@@ -442,14 +442,13 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
$scope.$on('guacKeyup', function keyupListener(event, keysym, keyboard) { $scope.$on('guacKeyup', function keyupListener(event, keysym, keyboard) {
// Sync local clipboard with any clipboard data received while this // Sync local clipboard with any clipboard data received while this
// key was pressed (if any) // key was pressed (if any) as long as the menu is not open
var clipboardData = clipboardDataFromKey[keysym]; var clipboardData = clipboardDataFromKey[keysym];
if (clipboardData) { if (clipboardData && !$scope.menu.shown)
clipboardService.setLocalClipboard(clipboardData); clipboardService.setLocalClipboard(clipboardData);
delete clipboardDataFromKey[keysym];
}
// Mark key as released // Mark key as released
delete clipboardDataFromKey[keysym];
delete keysCurrentlyPressed[keysym]; delete keysCurrentlyPressed[keysym];
}); });