mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-55: Do not sync local clipboard if menu is open.
This commit is contained in:
@@ -442,14 +442,13 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
||||
$scope.$on('guacKeyup', function keyupListener(event, keysym, keyboard) {
|
||||
|
||||
// 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];
|
||||
if (clipboardData) {
|
||||
if (clipboardData && !$scope.menu.shown)
|
||||
clipboardService.setLocalClipboard(clipboardData);
|
||||
delete clipboardDataFromKey[keysym];
|
||||
}
|
||||
|
||||
// Mark key as released
|
||||
delete clipboardDataFromKey[keysym];
|
||||
delete keysCurrentlyPressed[keysym];
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user