From: Alex Bligh Date: Sat, 22 Sep 2012 17:20:09 +0000 (+0100) Subject: Make keyboard modifiers work by avoiding duplicate name X-Git-Url: http://git.alex.org.uk Make keyboard modifiers work by avoiding duplicate name --- 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; }