mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Do not use false to mark unpressed - just delete entry.
This commit is contained in:
@@ -238,8 +238,7 @@ Guacamole.Keyboard = function(element) {
|
|||||||
/**
|
/**
|
||||||
* The state of every key, indexed by keysym. If a particular key is
|
* The state of every key, indexed by keysym. If a particular key is
|
||||||
* pressed, the value of pressed for that keysym will be true. If a key
|
* pressed, the value of pressed for that keysym will be true. If a key
|
||||||
* is not currently pressed, the value for that keysym may be false or
|
* is not currently pressed, it will not be defined.
|
||||||
* undefined.
|
|
||||||
*/
|
*/
|
||||||
this.pressed = {};
|
this.pressed = {};
|
||||||
|
|
||||||
@@ -341,7 +340,7 @@ Guacamole.Keyboard = function(element) {
|
|||||||
function sendKeyReleased(keysym) {
|
function sendKeyReleased(keysym) {
|
||||||
|
|
||||||
// Mark key as released
|
// Mark key as released
|
||||||
guac_keyboard.pressed[keysym] = false;
|
delete guac_keyboard.pressed[keysym];
|
||||||
|
|
||||||
// Send key event
|
// Send key event
|
||||||
if (keysym != null && guac_keyboard.onkeyup)
|
if (keysym != null && guac_keyboard.onkeyup)
|
||||||
|
Reference in New Issue
Block a user