GUACAMOLE-55: Prevent clipboard events generated by the clipboardService from disturbing the operations of the guacClipboard directive.

This commit is contained in:
Michael Jumper committed 2016-06-28 14:00:53 -07:00
1 parent ea5ee1825b
commit 16637b0732
2 files changed
+19 -3

No files matched your search

@@ -288,9 +288,9 @@ angular.module('clipboard').directive('guacClipboard', ['$injector',
};
// Attempt to read the clipboard if it may have changed
$window.addEventListener('copy', checkClipboard, true);
$window.addEventListener('cut', checkClipboard, true);
$window.addEventListener('focus', checkClipboard, true);
$window.addEventListener('copy', checkClipboard);
$window.addEventListener('cut', checkClipboard);
$window.addEventListener('focus', checkClipboard);
// Clean up on destruction
$scope.$on('$destroy', function destroyClipboard() {