GUAC-862: Prefer keyCode to DOM3 key for keyup, as it's more accurate when dead keys are used.
This commit is contained in:
1 parent
4d7a49af31
commit
dd3a1af3f2
1 file changed
+3
-3
@@ -291,9 +291,9 @@ Guacamole.Keyboard = function(element) {
|
|||||||
this.location = location;
|
this.location = location;
|
||||||
|
|
||||||
// If key is known from keyCode or DOM3 alone, use that
|
// If key is known from keyCode or DOM3 alone, use that
|
||||||
this.keysym = keysym_from_key_identifier(key, location)
|
this.keysym = keysym_from_keycode(keyCode, location)
|
||||||
|| keysym_from_keycode(keyCode, location)
|
|| recentKeysym[keyCode]
|
||||||
|| recentKeysym[keyCode];
|
|| keysym_from_key_identifier(key, location); // keyCode is still more reliable for keyup when dead keys are in use
|
||||||
|
|
||||||
// Keyup is as reliable as it will ever be
|
// Keyup is as reliable as it will ever be
|
||||||
this.reliable = true;
|
this.reliable = true;
|
||||||
|
|||||||
Reference in new issue
Block a user