Merge remote-tracking branch 'origin/termux_fix' into termux_fix

This commit is contained in:
merkost 2023-06-23 12:24:27 +10:00
commit 859af20078
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared
val originalText = inputConnection.getExtractedText(ExtractedTextRequest(), 0)?.text
inputConnection.commitText(codeChar.toString(), 1)
val newText = inputConnection.getExtractedText(ExtractedTextRequest(), 0)?.text
val originalText = inputConnection.getExtractedText(ExtractedTextRequest(), 0)?.text
if (originalText != newText) {
switchToLetters = true
}