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

Commit 2474b37a authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Disable gesture input detection when more keys keyboard is showing"

parents 62b8dddb cc3500b0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -669,7 +669,7 @@ public class PointerTracker {
        if (queue != null && queue.size() == 1) {
            mIsPossibleGesture = false;
            // A gesture should start only from the letter key.
            if (sIsGestureEnabled && mIsAlphabetKeyboard && key != null
            if (sIsGestureEnabled && mIsAlphabetKeyboard && !mIsShowingMoreKeysPanel && key != null
                    && Keyboard.isLetterCode(key.mCode)) {
                mIsPossibleGesture = true;
                // TODO: pointer times should be relative to first down even in entire batch input
@@ -913,8 +913,8 @@ public class PointerTracker {
    public void onShowMoreKeysPanel(int x, int y, KeyEventHandler handler) {
        abortBatchInput();
        onLongPressed();
        onDownEvent(x, y, SystemClock.uptimeMillis(), handler);
        mIsShowingMoreKeysPanel = true;
        onDownEvent(x, y, SystemClock.uptimeMillis(), handler);
    }

    public void onLongPressed() {