mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Only modifier states should toggle.
This commit is contained in:
@@ -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