From 8c096778bc0235b2059495715fee91c31b719c67 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 2 Oct 2018 22:19:15 -0700 Subject: [PATCH] GUACAMOLE-232: Fall back to using recent keysym only after failing to determine released key by keycode. --- guacamole-common-js/src/main/webapp/modules/Keyboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js index f9706512e..83e7944bd 100644 --- a/guacamole-common-js/src/main/webapp/modules/Keyboard.js +++ b/guacamole-common-js/src/main/webapp/modules/Keyboard.js @@ -386,8 +386,8 @@ Guacamole.Keyboard = function Keyboard(element) { this.location = location; // If key is known from keyCode or DOM3 alone, use that - this.keysym = recentKeysym[keyCode] - || keysym_from_keycode(keyCode, location) + this.keysym = keysym_from_keycode(keyCode, location) + || 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