Use new onkeydown / onkeyup.

This commit is contained in:
Michael Jumper
2012-01-23 15:15:03 -08:00
parent ae06e08a31
commit e4b82bee3a

View File

@@ -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);
};