Skip to content

Commit

Permalink
GUACAMOLE-1678: Fix the typing issue in the clipboard text in some ca…
Browse files Browse the repository at this point in the history
…ses.
  • Loading branch information
myjimmy committed Jan 29, 2024
1 parent 8ee3df0 commit a49f20c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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;
};
Expand Down

0 comments on commit a49f20c

Please sign in to comment.