mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-12 08:57:30 +00:00
fix(web): applies base key layer property to unassigned subkeys
This commit is contained in:
parent
7d55ed3e6b
commit
8b3cf464d9
1 changed files with 5 additions and 0 deletions
|
|
@ -314,6 +314,11 @@ namespace com.keyman.osk {
|
|||
var oldText=bsk[bsn]['text'];
|
||||
bsk[bsn]['text']=this.renameSpecialKey(oldText);
|
||||
}
|
||||
|
||||
// If a subkey doesn't have a defined layer property, copy it from the base key's layer by default.
|
||||
if(!bsk[bsn].layer) {
|
||||
bsk[bsn].layer = btn.key.layer
|
||||
}
|
||||
}
|
||||
|
||||
// If a subkey array is defined, add an icon
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue