mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +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
|
// Set up click handler for key
|
||||||
key_element.onclick = function() {
|
key_element.onclick = function() {
|
||||||
|
|
||||||
// Toggle pressed state
|
|
||||||
key.pressed = !key.pressed;
|
|
||||||
|
|
||||||
// Get current cap based on modifier state
|
// Get current cap based on modifier state
|
||||||
var cap = key.getCap(on_screen_keyboard.modifiers);
|
var cap = key.getCap(on_screen_keyboard.modifiers);
|
||||||
|
|
||||||
// Update modifier state
|
// Update modifier state
|
||||||
if (cap.modifier) {
|
if (cap.modifier) {
|
||||||
|
|
||||||
|
// Toggle pressed state
|
||||||
|
key.pressed = !key.pressed;
|
||||||
|
|
||||||
// Construct classname for modifier
|
// Construct classname for modifier
|
||||||
var modifierClass = "guac-keyboard-modifier-" + cap.modifier;
|
var modifierClass = "guac-keyboard-modifier-" + cap.modifier;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user