fix: remove numbers from popup character if showNumbersRow is enabled.

This commit is contained in:
ismailnurudeen 2023-04-20 12:42:57 +01:00
parent 7bb026b278
commit acb82a5caa
1 changed files with 10 additions and 0 deletions

View File

@ -360,6 +360,16 @@ class MyKeyboard {
}
inKey = true
key = createKeyFromXml(res, currentRow!!, x, y, parser)
if(context.config.showNumbersRow){
// Removes numbers (i.e 0-9) from the popupCharacters if numbers row is enabled
key.apply{
popupCharacters = popupCharacters?.replace(Regex("\\d+"), "")
if(popupCharacters.isNullOrEmpty()){
popupResId = 0
}
}
}
mKeys!!.add(key)
if (key.code == KEYCODE_ENTER) {
val enterResourceId = when (mEnterKeyType) {