Only modifier states should toggle.
This commit is contained in:
1 parent
61fcf959b3
commit
53683c90d2
1 file changed
+3
-3
@@ -243,15 +243,15 @@ Guacamole.OnScreenKeyboard = function(url) {
|
||||
// Set up click handler for key
|
||||
key_element.onclick = function() {
|
||||
|
||||
// Toggle pressed state
|
||||
key.pressed = !key.pressed;
|
||||
|
||||
// Get current cap based on modifier state
|
||||
var cap = key.getCap(on_screen_keyboard.modifiers);
|
||||
|
||||
// Update modifier state
|
||||
if (cap.modifier) {
|
||||
|
||||
// Toggle pressed state
|
||||
key.pressed = !key.pressed;
|
||||
|
||||
// Construct classname for modifier
|
||||
var modifierClass = "guac-keyboard-modifier-" + cap.modifier;
|
||||
|
||||
|
||||
Reference in new issue
Block a user