mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 23:27:39 +00:00
Clarify setIsChiral parameter
This commit is contained in:
parent
3a30d23684
commit
adee729b8a
1 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue