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

Commit 40dcf567 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Keyboard : Swipe Gestures" into gingerbread

parents 422d0050 db8eba50
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -2339,10 +2339,13 @@ public class LatinIME extends InputMethodService
            if (!TextUtils.isEmpty(text)) {
            if (!TextUtils.isEmpty(text)) {
                mKeyboardSwitcher.getInputView().startPlaying(text.toString());
                mKeyboardSwitcher.getInputView().startPlaying(text.toString());
            }
            }
        } else {
            changeKeyboardMode();
        }
        }
    }
    }


    public void swipeLeft() {
    public void swipeLeft() {
        changeKeyboardMode();
    }
    }


    public void swipeDown() {
    public void swipeDown() {
@@ -2351,6 +2354,13 @@ public class LatinIME extends InputMethodService


    public void swipeUp() {
    public void swipeUp() {
        //launchSettings();
        //launchSettings();
        if (mCapsLock) {
            mCapsLock = false;
            mKeyboardSwitcher.setShifted(false);
        } else {
            mCapsLock = true;
            mKeyboardSwitcher.setShiftLocked(true);
        }
    }
    }


    public void onPress(int primaryCode) {
    public void onPress(int primaryCode) {