From 1d42823f8206a098549bb08bd0d39c749374e4ef Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 29 Sep 2014 00:13:37 -0700 Subject: [PATCH] GUAC-862: Restore handling of keyCode 229 (composition). --- guacamole-common-js/src/main/webapp/modules/Keyboard.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js index d1b5e6664..8ba10c56f 100644 --- a/guacamole-common-js/src/main/webapp/modules/Keyboard.js +++ b/guacamole-common-js/src/main/webapp/modules/Keyboard.js @@ -988,6 +988,11 @@ Guacamole.Keyboard = function(element) { // Fix modifier states update_modifier_state(e); + // Ignore (but do not prevent) the "composition" keycode sent by some + // browsers when an IME is in use (see: http://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html) + if (keyCode === 229) + return; + // Log event var keydownEvent = new KeydownEvent(keyCode, e.keyIdentifier, e.key, e.location || e.keyLocation); eventLog.push(keydownEvent);