Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c410e243 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Ignore releasing shift key caused by long press

Bug: 5694715
Change-Id: If7b84f547f5701e84d740f186d284273565b7eba
parent 1acce421
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -566,8 +566,8 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
            if (shiftKeyState.isMomentary()) {
                // After chording input while normal state.
                toggleShift();
            } else if (isShiftLocked() && !isShiftLockShifted() && shiftKeyState.isPressing()
                    && !withSliding) {
            } else if (isShiftLocked() && !isShiftLockShifted() && (shiftKeyState.isPressing()
                    || shiftKeyState.isPressingOnShifted()) && !withSliding) {
                // Shift has been long pressed, ignore this release.
            } else if (isShiftLocked() && !shiftKeyState.isIgnoring() && !withSliding) {
                // Shift has been pressed without chording while caps lock state.