mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-09 15:37:28 +00:00
fix(developer): touch layout was not converting all special keycaps
Fixes #9161. kmw-compiler was converting only the first key cap with `*special*` caption, rather than all key caps.
This commit is contained in:
parent
d2acfdec5c
commit
4d64cb2d38
1 changed files with 2 additions and 2 deletions
|
|
@ -188,9 +188,9 @@ function TransformSpecialKeys14(FDebug: boolean, sLayoutFile: string): string {
|
|||
for(let i = 0; i < CSpecialText14Map.length; i++) {
|
||||
// Assumes the JSON output format will not change
|
||||
if(FDebug) {
|
||||
sLayoutFile = sLayoutFile.replace('"text": "'+CSpecialText14Map[i][0]+'"', '"text": this._v>13 ? "'+CSpecialText14Map[i][0]+'" : "'+CSpecialText14Map[i][1]+'"');
|
||||
sLayoutFile = sLayoutFile.replaceAll('"text": "'+CSpecialText14Map[i][0]+'"', '"text": this._v>13 ? "'+CSpecialText14Map[i][0]+'" : "'+CSpecialText14Map[i][1]+'"');
|
||||
} else {
|
||||
sLayoutFile = sLayoutFile.replace('"text":"'+CSpecialText14Map[i][0]+'"', '"text":this._v>13?"'+CSpecialText14Map[i][0]+'":"'+CSpecialText14Map[i][1]+'"');
|
||||
sLayoutFile = sLayoutFile.replaceAll('"text":"'+CSpecialText14Map[i][0]+'"', '"text":this._v>13?"'+CSpecialText14Map[i][0]+'":"'+CSpecialText14Map[i][1]+'"');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue