forked from shaba/openuds
Leverage Guacamole.InputSink for dead key support.
The Guacamole.InputSink object was added to guacamole-common-js as part of the 1.0.0 release of Apache Guacamole, allowing composed key events to be handled with Guacamole.Keyboard as any other keys would: http://guacamole.apache.org/releases/1.0.0/#improved-keyboard-handling--support-for-dead-keys
This commit is contained in:
parent
a393e0b5a3
commit
fea0f6aa34
@ -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>
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user