Fixed support for deathkey on UDS

This commit is contained in:
Adolfo Gómez García 2019-10-14 09:21:27 +02:00
parent c6f3c87b93
commit 5953a67d3a
2 changed files with 7 additions and 3 deletions

View File

@ -81,14 +81,14 @@
<dependency> <dependency>
<groupId>org.apache.guacamole</groupId> <groupId>org.apache.guacamole</groupId>
<artifactId>guacamole-common</artifactId> <artifactId>guacamole-common</artifactId>
<version>0.9.14</version> <version>1.0.0</version>
</dependency> </dependency>
<!-- Guacamole JavaScript library --> <!-- Guacamole JavaScript library -->
<dependency> <dependency>
<groupId>org.apache.guacamole</groupId> <groupId>org.apache.guacamole</groupId>
<artifactId>guacamole-common-js</artifactId> <artifactId>guacamole-common-js</artifactId>
<version>0.9.14</version> <version>1.0.0</version>
<type>zip</type> <type>zip</type>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>

View File

@ -263,7 +263,7 @@ GuacUI.Client = {
"min_zoom" : 1, "min_zoom" : 1,
"max_zoom" : 3, "max_zoom" : 3,
"connectionName" : "Guacamole", "connectionName" : "UDS Remote Connection",
"attachedClient" : null, "attachedClient" : null,
/* Mouse emulation */ /* Mouse emulation */
@ -1433,7 +1433,11 @@ GuacUI.Client.attach = function(guac) {
* Route document-level keyboard events to the client. * Route document-level keyboard events to the client.
*/ */
var sink = new Guacamole.InputSink();
document.body.appendChild(sink.getElement());
var keyboard = new Guacamole.Keyboard(document); var keyboard = new Guacamole.Keyboard(document);
keyboard.listenTo(sink.getElement());
var show_keyboard_gesture_possible = true; var show_keyboard_gesture_possible = true;
function __send_key(pressed, keysym) { function __send_key(pressed, keysym) {