mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-128: Check clipboard for received events only during bubble phase (allow clipboard service to manage propagation from its event target).
This commit is contained in:
@@ -137,8 +137,8 @@ angular.module('index').controller('indexController', ['$scope', '$injector',
|
|||||||
|
|
||||||
// Attempt to read the clipboard if it may have changed
|
// Attempt to read the clipboard if it may have changed
|
||||||
$window.addEventListener('load', checkClipboard, true);
|
$window.addEventListener('load', checkClipboard, true);
|
||||||
$window.addEventListener('copy', checkClipboard, true);
|
$window.addEventListener('copy', checkClipboard);
|
||||||
$window.addEventListener('cut', checkClipboard, true);
|
$window.addEventListener('cut', checkClipboard);
|
||||||
$window.addEventListener('focus', function focusGained(e) {
|
$window.addEventListener('focus', function focusGained(e) {
|
||||||
|
|
||||||
// Only recheck clipboard if it's the window itself that gained focus
|
// Only recheck clipboard if it's the window itself that gained focus
|
||||||
|
Reference in New Issue
Block a user