GUACAMOLE-128: Stop propagation of "cut" events from within clipboard service 
event target.

Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/6ce1eb1d
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/6ce1eb1d
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/6ce1eb1d

Branch: refs/heads/master
Commit: 6ce1eb1d3a2d63597cc61b00a850619bb3546552
Parents: 75a575d
Author: Michael Jumper <[email protected]>
Authored: Sun Sep 3 16:30:52 2017 -0700
Committer: Michael Jumper <[email protected]>
Committed: Sun Sep 3 18:02:46 2017 -0700

----------------------------------------------------------------------
 .../src/main/webapp/app/clipboard/services/clipboardService.js      | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/6ce1eb1d/guacamole/src/main/webapp/app/clipboard/services/clipboardService.js
----------------------------------------------------------------------
diff --git 
a/guacamole/src/main/webapp/app/clipboard/services/clipboardService.js 
b/guacamole/src/main/webapp/app/clipboard/services/clipboardService.js
index 939161e..06abb04 100644
--- a/guacamole/src/main/webapp/app/clipboard/services/clipboardService.js
+++ b/guacamole/src/main/webapp/app/clipboard/services/clipboardService.js
@@ -86,6 +86,7 @@ angular.module('clipboard').factory('clipboardService', 
['$injector',
     };
 
     // Prevent events generated due to execCommand() from disturbing external 
things
+    clipboardContent.addEventListener('cut',   stopEventPropagation);
     clipboardContent.addEventListener('copy',  stopEventPropagation);
     clipboardContent.addEventListener('paste', stopEventPropagation);
 

Reply via email to