From 7ffff054a80def4576c2aa2632e3e653e2211acd Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Thu, 24 Jan 2013 19:08:17 -0800 Subject: [PATCH] Ticket 254: Put in fix for chrome bug 108404. Automatically release key if a keydown is recieved while meta is held down. --- guacamole-common-js/src/main/resources/keyboard.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guacamole-common-js/src/main/resources/keyboard.js b/guacamole-common-js/src/main/resources/keyboard.js index 563b6942d..4fe2a57b7 100644 --- a/guacamole-common-js/src/main/resources/keyboard.js +++ b/guacamole-common-js/src/main/resources/keyboard.js @@ -479,6 +479,11 @@ Guacamole.Keyboard = function(element) { if (keysym != null) { keydownChar[keynum] = keysym; press_key(keysym); + + // If a key is pressed while meta is held down, the keyup will never be sent in Chrome, so send it now. (bug #108404) + if(guac_keyboard.modifiers.meta) { + release_key(keysym); + } } }