diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js index fb8e20aee..663c28a68 100644 --- a/guacamole-common-js/src/main/webapp/modules/Keyboard.js +++ b/guacamole-common-js/src/main/webapp/modules/Keyboard.js @@ -752,6 +752,9 @@ Guacamole.Keyboard = function(element) { for (var keysym in guac_keyboard.pressed) guac_keyboard.release(parseInt(keysym)); + // Clear event log + eventLog = []; + }; /** @@ -828,35 +831,6 @@ Guacamole.Keyboard = function(element) { } - /** - * Searches the event log for a keyup event corresponding to the given - * keydown event, returning its index within the log. - * - * @param {KeydownEvent} keydown The keydown event whose corresponding keyup - * event we are to search for. - * @returns {Number} The index of the first keyup event in the event log - * matching the given keydown event, or -1 if no such - * event exists. - */ - function indexof_keyup(keydown) { - - var i; - - // Search event log for keyup events having the given keysym - for (i=0; i