Make keyboard modifiers work by avoiding duplicate name master
authorAlex Bligh <alex@alex.org.uk>
Sat, 22 Sep 2012 17:20:09 +0000 (18:20 +0100)
committerAlex Bligh <alex@alex.org.uk>
Sat, 22 Sep 2012 17:20:09 +0000 (18:20 +0100)
src/main/resources/oskeyboard.js

index 3acebdb..b0a8e36 100644 (file)
@@ -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;
 
         }