Clarify setIsChiral parameter

This commit is contained in:
darcywong00 2017-10-03 08:36:56 +07:00
parent 3a30d23684
commit adee729b8a

View file

@ -66,14 +66,16 @@
return oskWidth;
}
function setIsChiral(m) {
// Query KMW if keyboardID is a keyboard with chiral modifiers.
// If keyboardID not given, use active keyboard
function setIsChiral(keyboardID) {
var isChiral = false;
if (typeof m !== "undefined") {
isChiral = tavultesoft.keymanweb.isChiral(m);
if (typeof keyboardID !== "undefined") {
isChiral = tavultesoft.keymanweb.isChiral(keyboardID);
} else {
isChiral = tavultesoft.keymanweb.isChiral();
}
window.console.log("keyboard.html: setIsChiral " + isChiral);
window.console.log('Keyboard setIsChiral = ' + isChiral);
window.jsInterface.setIsChiral(isChiral);
}