do not allow toggline permanent caps with a key inbetween 2 shifts

This commit is contained in:
tibbi 2022-02-10 10:13:08 +01:00
parent 9513e11e0f
commit 71edc078de
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
return return
} }
if (code != MyKeyboard.KEYCODE_SHIFT) {
lastShiftPressTS = 0
}
when (code) { when (code) {
MyKeyboard.KEYCODE_DELETE -> { MyKeyboard.KEYCODE_DELETE -> {
if (keyboard!!.mShiftState == SHIFT_ON_ONE_CHAR) { if (keyboard!!.mShiftState == SHIFT_ON_ONE_CHAR) {