mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUAC-1170: For sake of consistency, keyWidth should be keyWidths.
This commit is contained in:
@@ -569,7 +569,7 @@ Guacamole.OnScreenKeyboard = function(layout) {
|
|||||||
|
|
||||||
// Add key to DOM, maintain scale
|
// Add key to DOM, maintain scale
|
||||||
div.appendChild(keyElement);
|
div.appendChild(keyElement);
|
||||||
scaledElements.push(new ScaledElement(div, osk.layout.keyWidth[object] || 1, 1, true));
|
scaledElements.push(new ScaledElement(div, osk.layout.keyWidths[object] || 1, 1, true));
|
||||||
|
|
||||||
} // end if object is key name
|
} // end if object is key name
|
||||||
|
|
||||||
@@ -650,7 +650,7 @@ Guacamole.OnScreenKeyboard.Layout = function(template) {
|
|||||||
*
|
*
|
||||||
* @type Object.<String, Number>
|
* @type Object.<String, Number>
|
||||||
*/
|
*/
|
||||||
this.keyWidth = template.keyWidth || {};
|
this.keyWidths = template.keyWidths || {};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -371,7 +371,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"keyWidth" : {
|
"keyWidths" : {
|
||||||
|
|
||||||
"Back" : 2,
|
"Back" : 2,
|
||||||
"Tab" : 1.5,
|
"Tab" : 1.5,
|
||||||
|
Reference in New Issue
Block a user