From: Michael Jumper Date: Mon, 23 Jan 2012 23:15:03 +0000 (-0800) Subject: Use new onkeydown / onkeyup. X-Git-Url: http://git.alex.org.uk Use new onkeydown / onkeyup. --- diff --git a/src/main/webapp/scripts/interface.js b/src/main/webapp/scripts/interface.js index 3fe51b9..8326335 100644 --- a/src/main/webapp/scripts/interface.js +++ b/src/main/webapp/scripts/interface.js @@ -435,11 +435,11 @@ GuacamoleUI.attach = function(guac) { GuacamoleUI.clipboard.value = data; }; - GuacamoleUI.keyboard.onkeypress = function(keysym) { + GuacamoleUI.keyboard.onkeydown = function(keysym) { guac.sendKeyEvent(1, keysym); }; - GuacamoleUI.keyboard.onkeyrelease = function(keysym) { + GuacamoleUI.keyboard.onkeyup = function(keysym) { guac.sendKeyEvent(0, keysym); };