From a49f20cd46383948544a91d430d7a0a0133e918c Mon Sep 17 00:00:00 2001 From: Jimmy Date: Wed, 17 Jan 2024 01:32:33 -0800 Subject: [PATCH] GUACAMOLE-1678: Fix the typing issue in the clipboard text in some cases. --- .../frontend/src/app/clipboard/services/clipboardService.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/guacamole/src/main/frontend/src/app/clipboard/services/clipboardService.js b/guacamole/src/main/frontend/src/app/clipboard/services/clipboardService.js index 4ec9d04b8b..2fa62f6805 100644 --- a/guacamole/src/main/frontend/src/app/clipboard/services/clipboardService.js +++ b/guacamole/src/main/frontend/src/app/clipboard/services/clipboardService.js @@ -212,7 +212,6 @@ angular.module('clipboard').factory('clipboardService', ['$injector', // Track the originally-focused element prior to changing focus var originalElement = document.activeElement; - pushSelection(); // Copy the given value into the clipboard DOM element if (typeof data.data === 'string') @@ -234,11 +233,9 @@ angular.module('clipboard').factory('clipboardService', ['$injector', else deferred.reject(); - // Unfocus the clipboard DOM event to avoid mobile keyboard opening, - // restoring whichever element was originally focused + // Unfocus the clipboard DOM event to avoid mobile keyboard opening clipboardContent.blur(); originalElement.focus(); - popSelection(); return deferred.promise; };