Merge pull request #46 from glyptodon/dead-keys

Leverage Guacamole.InputSink for dead key support.
This commit is contained in:
Adolfo Gómez 2019-10-14 09:18:50 +02:00 committed by GitHub
commit 015cde5301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -1433,7 +1433,11 @@ GuacUI.Client.attach = function(guac) {
* Route document-level keyboard events to the client.
*/
var sink = new Guacamole.InputSink();
document.body.appendChild(sink.getElement());
var keyboard = new Guacamole.Keyboard(document);
keyboard.listenTo(sink.getElement());
var show_keyboard_gesture_possible = true;
function __send_key(pressed, keysym) {