From a97bab2f4b3754cbd9a71610c31c8caab588612c Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 22 Sep 2014 15:05:34 -0700 Subject: [PATCH] GUAC-862: Set defaultPrevented of keypress, not just keydown. --- guacamole-common-js/src/main/webapp/modules/Keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js index 495db2de5..3a534fc6e 100644 --- a/guacamole-common-js/src/main/webapp/modules/Keyboard.js +++ b/guacamole-common-js/src/main/webapp/modules/Keyboard.js @@ -781,7 +781,7 @@ Guacamole.Keyboard = function(element) { keysym = keysym_from_charcode(next.charCode); if (keysym) { recentKeysym[first.keyCode] = keysym; - first.defaultPrevented = !press_key(keysym); + first.defaultPrevented = next.defaultPrevented = !press_key(keysym); return eventLog.shift(); }