Added autoCapitalization on Enter button press

This commit is contained in:
merkost 2023-05-20 16:53:14 +10:00
parent 95f05a7b96
commit 84e1b8bca9
1 changed files with 2 additions and 1 deletions

View File

@ -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()
}
}
}