From 6cc12e88f9fccc92f19c83f47f0a59aef3bd42b5 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 16 May 2012 13:38:28 -0700 Subject: [PATCH] preventDefault() in keypress, too. --- guacamole-common-js/src/main/resources/keyboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guacamole-common-js/src/main/resources/keyboard.js b/guacamole-common-js/src/main/resources/keyboard.js index 4f957164f..fe2e777b3 100644 --- a/guacamole-common-js/src/main/resources/keyboard.js +++ b/guacamole-common-js/src/main/resources/keyboard.js @@ -444,7 +444,6 @@ Guacamole.Keyboard = function(element) { if (keydown_keysym) e.preventDefault(); - // Also try to get get keysym from keyIdentifier if (e.keyIdentifier) { @@ -479,6 +478,8 @@ Guacamole.Keyboard = function(element) { // Only intercept if handler set if (!guac_keyboard.onkeydown) return; + e.preventDefault(); + var keynum; if (window.event) keynum = window.event.keyCode; else if (e.which) keynum = e.which;