Fixed Turkish Q layout

This commit is contained in:
telextractor
2023-07-15 23:18:52 +05:30
parent 0489f9a9b3
commit ffe7b05008
2 changed files with 11 additions and 2 deletions

View File

@ -473,7 +473,11 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
private fun adjustCase(label: CharSequence): CharSequence? {
var newLabel: CharSequence? = label
if (!newLabel.isNullOrEmpty() && mKeyboard!!.mShiftState != ShiftState.OFF && newLabel.length < 3 && Character.isLowerCase(newLabel[0])) {
newLabel = newLabel.toString().uppercase(Locale.getDefault())
if (context.config.keyboardLanguage == LANGUAGE_TURKISH_Q) {
newLabel = newLabel.toString().uppercase(Locale.forLanguageTag("tr"))
} else {
newLabel = newLabel.toString().uppercase(Locale.getDefault())
}
}
return newLabel
}