GUACAMOLE-352: Leverage Guacamole.Keyboard.InputSink within webapp as a default destination for input events.

This commit is contained in:
Michael Jumper committed 2018-01-16 09:50:54 -08:00
1 parent f9a639d201
commit f696860067
1 file changed
+4
@@ -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]);