From 84e1b8bca9a09fd7affee24d7b6456f7bd54e1eb Mon Sep 17 00:00:00 2001 From: merkost Date: Sat, 20 May 2023 16:53:14 +1000 Subject: [PATCH] Added autoCapitalization on Enter button press --- .../simplemobiletools/keyboard/services/SimpleKeyboardIME.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt index 7dbcc29a..02d8c545 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt @@ -149,7 +149,8 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL inputConnection.sendKeyEvent(KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_ENTER)) if (config.enableSentencesCapitalization) { - keyboard!!.mShiftState = ShiftState.ON_ONE_CHAR + keyboard!!.setShifted(ShiftState.ON_ONE_CHAR) + keyboardView!!.invalidateAllKeys() } } }