From aa7c38be3206cfadffd21e6c67833aac4fef2dfe Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 16 May 2012 10:40:06 -0700 Subject: [PATCH] Should be using clearTimeout(), not clearInterval() for timeout. --- guacamole-common-js/src/main/resources/keyboard.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/guacamole-common-js/src/main/resources/keyboard.js b/guacamole-common-js/src/main/resources/keyboard.js index d1d222452..af19c2697 100644 --- a/guacamole-common-js/src/main/resources/keyboard.js +++ b/guacamole-common-js/src/main/resources/keyboard.js @@ -262,7 +262,7 @@ Guacamole.Keyboard = function(element) { // Stops repeating keystrokes function stopRepeat() { - if (repeatKeyTimeoutId != -1) clearInterval(repeatKeyTimeoutId); + if (repeatKeyTimeoutId != -1) clearTimeout(repeatKeyTimeoutId); if (repeatKeyIntervalId != -1) clearInterval(repeatKeyIntervalId); } @@ -511,10 +511,6 @@ Guacamole.Keyboard = function(element) { if (window.event) keynum = window.event.keyCode; else if (e.which) keynum = e.which; - // Ignore any unknown key events - if (keynum == 0) - return; - // Ctrl/Alt/Shift if (keynum == 16) guac_keyboard.modifiers.shift = false; else if (keynum == 17) guac_keyboard.modifiers.ctrl = false;