You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2016/03/20 03:21:58 UTC

[18/50] incubator-guacamole-client git commit: GUAC-1480: Unfocus clipboard DOM element to avoid mobile keyboard popping up.

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 <ja...@guac-dev.org>
Authored: Mon Feb 8 21:00:56 2016 -0800
Committer: James Muehlner <ja...@guac-dev.org>
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;