mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-28 08:47:47 +00:00
Merge pull request #5351 from keymanapp/fix/android/cherry/subkeys-with-modifiers
fix(android): fixes application of nextlayer for subkeys with customized layer setting 🍒
This commit is contained in:
commit
e05eccdcd8
2 changed files with 5 additions and 1 deletions
|
|
@ -272,7 +272,7 @@
|
|||
var keyPos = x.toString() + ',' + y.toString();
|
||||
for(i=0; i<obj.length; i++)
|
||||
{
|
||||
s=s+obj[i].layer+'-'+obj[i].id;
|
||||
s=s+obj[i].layer+'-'+obj[i].coreID;
|
||||
if(obj[i].sp == 1 || obj[i].sp == 2) shift = true;
|
||||
if(typeof(obj[i].text) != 'undefined' && obj[i].text != null && obj[i].text != '') s=s+':'+toHex(obj[i].text);
|
||||
if(i < (obj.length -1)) s=s+';'
|
||||
|
|
|
|||
|
|
@ -1042,6 +1042,10 @@ final class KMKeyboard extends WebView {
|
|||
private String getSubkeyText(String keyID, String keyText) {
|
||||
String text = keyText;
|
||||
if (text.isEmpty()) {
|
||||
if(keyID.indexOf("U_") != -1 && keyID.indexOf("+") != -1 ) {
|
||||
// Chop off any appended '+____' portion of the key ID.
|
||||
keyID = keyID.substring(0, keyID.indexOf("+"));
|
||||
}
|
||||
text = keyID.replaceAll("U_", "\\\\u");
|
||||
}
|
||||
return text;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue