mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-02-16 11:50:41 +01:00
fix: remove numbers from popup character if showNumbersRow is enabled.
This commit is contained in:
parent
7bb026b278
commit
acb82a5caa
@ -360,6 +360,16 @@ class MyKeyboard {
|
|||||||
}
|
}
|
||||||
inKey = true
|
inKey = true
|
||||||
key = createKeyFromXml(res, currentRow!!, x, y, parser)
|
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)
|
mKeys!!.add(key)
|
||||||
if (key.code == KEYCODE_ENTER) {
|
if (key.code == KEYCODE_ENTER) {
|
||||||
val enterResourceId = when (mEnterKeyType) {
|
val enterResourceId = when (mEnterKeyType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user