You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by vn...@apache.org on 2018/01/16 18:41:48 UTC
[02/23] guacamole-client git commit: GUACAMOLE-352: Leverage
Guacamole.Keyboard.InputSink within webapp as a default destination for input
events.
GUACAMOLE-352: Leverage Guacamole.Keyboard.InputSink within webapp as a default destination for input events.
Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/f6968600
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/f6968600
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/f6968600
Branch: refs/heads/master
Commit: f6968600674f1a2051a97267b826bbe2f6a535f3
Parents: f9a639d
Author: Michael Jumper <mj...@apache.org>
Authored: Sun Dec 17 22:51:34 2017 -0800
Committer: Michael Jumper <mj...@apache.org>
Committed: Tue Jan 16 09:50:54 2018 -0800
----------------------------------------------------------------------
.../src/main/webapp/app/index/controllers/indexController.js | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/f6968600/guacamole/src/main/webapp/app/index/controllers/indexController.js
----------------------------------------------------------------------
diff --git a/guacamole/src/main/webapp/app/index/controllers/indexController.js b/guacamole/src/main/webapp/app/index/controllers/indexController.js
index 3a9230b..c4cad66 100644
--- a/guacamole/src/main/webapp/app/index/controllers/indexController.js
+++ b/guacamole/src/main/webapp/app/index/controllers/indexController.js
@@ -82,6 +82,10 @@ angular.module('index').controller('indexController', ['$scope', '$injector',
};
+ // Add default destination for input events
+ var sink = new Guacamole.Keyboard.InputSink();
+ $document[0].body.appendChild(sink.getElement());
+
// Create event listeners at the global level
var keyboard = new Guacamole.Keyboard($document[0]);