GUAC-1480: Unfocus clipboard DOM element to avoid mobile keyboard popping up.
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/1564aeed Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/1564aeed Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/1564aeed Branch: refs/heads/master Commit: 1564aeed87dff4a2841c6b9f98c04ec17c64a109 Parents: 1896d94 Author: James Muehlner <[email protected]> Authored: Mon Feb 8 21:00:56 2016 -0800 Committer: James Muehlner <[email protected]> Committed: Mon Feb 8 21:00:56 2016 -0800 ---------------------------------------------------------------------- .../src/main/webapp/app/client/services/clipboardService.js | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/1564aeed/guacamole/src/main/webapp/app/client/services/clipboardService.js ---------------------------------------------------------------------- diff --git a/guacamole/src/main/webapp/app/client/services/clipboardService.js b/guacamole/src/main/webapp/app/client/services/clipboardService.js index efa8478..30a3d8b 100644 --- a/guacamole/src/main/webapp/app/client/services/clipboardService.js +++ b/guacamole/src/main/webapp/app/client/services/clipboardService.js @@ -91,6 +91,9 @@ angular.module('client').factory('clipboardService', ['$injector', else deferred.reject(); + // Unfocus the clipboard DOM event to avoid mobile keyboard opening + clipboardContent.blur(); + return deferred.promise; }; @@ -121,6 +124,9 @@ angular.module('client').factory('clipboardService', ['$injector', else deferred.reject(); + // Unfocus the clipboard DOM event to avoid mobile keyboard opening + clipboardContent.blur(); + }, 100); return deferred.promise;
