From 27ab37243d99d0ea25716672715831b77e7dccf1 Mon Sep 17 00:00:00 2001 From: Alex Bligh Date: Sat, 22 Sep 2012 18:20:09 +0100 Subject: [PATCH] Make keyboard modifiers work by avoiding duplicate name --- src/main/resources/oskeyboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/oskeyboard.js b/src/main/resources/oskeyboard.js index 3acebdb..b0a8e36 100644 --- a/src/main/resources/oskeyboard.js +++ b/src/main/resources/oskeyboard.js @@ -63,7 +63,7 @@ Guacamole.OnScreenKeyboard = function(url) { var scaledElements = []; - var modifiers = {}; + var modifierValues = {}; var currentModifier = 1; /** @@ -137,7 +137,7 @@ Guacamole.OnScreenKeyboard = function(url) { // given name. The same value will be returned for the same modifier. function getModifier(name) { - var value = modifiers[name]; + var value = modifierValues[name]; if (!value) { // Get current modifier, advance to next @@ -145,7 +145,7 @@ Guacamole.OnScreenKeyboard = function(url) { currentModifier <<= 1; // Store value of this modifier - modifiers[name] = value; + modifierValues[name] = value; } -- 1.7.10.4