projects
/
guacamole-common-js.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6673b49
)
Make keyboard modifiers work by avoiding duplicate name
master
author
Alex Bligh <alex@alex.org.uk>
Sat, 22 Sep 2012 17:20:09 +0000
(18:20 +0100)
committer
Alex Bligh <alex@alex.org.uk>
Sat, 22 Sep 2012 17:20:09 +0000
(18:20 +0100)
src/main/resources/oskeyboard.js
patch
|
blob
|
history
diff --git
a/src/main/resources/oskeyboard.js
b/src/main/resources/oskeyboard.js
index
3acebdb
..
b0a8e36
100644
(file)
--- 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;
}