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

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

Shift/Symbol/Smiley will not disable settings/microphone keys

Bug: 5560766
Change-Id: Ic2dbb835e87a7debb222093756816e683b464b83
parent 10dff768
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1295,13 +1295,17 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
            break;
        case Keyboard.CODE_SHIFT:
            // Shift key is handled in onPress() when device has distinct multi-touch panel.
            if (!distinctMultiTouch)
            if (!distinctMultiTouch) {
                switcher.toggleShift();
            }
            shouldStartKeyTypedTimer = false;
            break;
        case Keyboard.CODE_SWITCH_ALPHA_SYMBOL:
            // Symbol key is handled in onPress() when device has distinct multi-touch panel.
            if (!distinctMultiTouch)
            if (!distinctMultiTouch) {
                switcher.changeKeyboardMode();
            }
            shouldStartKeyTypedTimer = false;
            break;
        case Keyboard.CODE_CANCEL:
            if (!isShowingOptionDialog()) {
@@ -1370,6 +1374,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
        mKeyboardSwitcher.onKey(Keyboard.CODE_DUMMY);
        mJustAddedMagicSpace = false;
        mEnteredText = text;
        mHandler.startKeyTypedTimer();
    }

    @Override