diff options
author | 2013-09-25 08:10:00 -0700 | |
---|---|---|
committer | 2013-09-25 08:10:00 -0700 | |
commit | 400ec7c5a6cc483fe4064bfb0d5462d2ad2c694e (patch) | |
tree | b02585c3aac54c760941adf4a9e57b5ee831fc5e /java/src | |
parent | daa9eac90d627e807e24f99e169f8ed011e4b4c3 (diff) | |
parent | 0938fb6913c10d32f0a870210fc208c7bbfe282c (diff) | |
download | latinime-400ec7c5a6cc483fe4064bfb0d5462d2ad2c694e.tar.gz latinime-400ec7c5a6cc483fe4064bfb0d5462d2ad2c694e.tar.xz latinime-400ec7c5a6cc483fe4064bfb0d5462d2ad2c694e.zip |
am 0938fb69: Allow gesture from the delete key
* commit '0938fb6913c10d32f0a870210fc208c7bbfe282c':
Allow gesture from the delete key
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/PointerTracker.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/PointerTracker.java b/java/src/com/android/inputmethod/keyboard/PointerTracker.java index d4d0d8718..c71833211 100644 --- a/java/src/com/android/inputmethod/keyboard/PointerTracker.java +++ b/java/src/com/android/inputmethod/keyboard/PointerTracker.java @@ -937,9 +937,10 @@ public final class PointerTracker implements PointerTrackerQueue.Element { if (!sShouldHandleGesture) { return; } - // A gesture should start only from a non-modifier key. + // A gesture should start only from a non-modifier key. Note that the gesture detection is + // disabled when the key is repeating. mIsDetectingGesture = (mKeyboard != null) && mKeyboard.mId.isAlphabetKeyboard() - && key != null && !key.isModifier() && !key.isRepeatable(); + && key != null && !key.isModifier(); if (mIsDetectingGesture) { if (getActivePointerTrackerCount() == 1) { sGestureFirstDownTime = eventTime; @@ -1422,6 +1423,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element { if (key == null || key.getCode() != code) { return; } + mIsDetectingGesture = false; final int nextRepeatCount = repeatCount + 1; mTimerProxy.startKeyRepeatTimer(this, nextRepeatCount, sParams.mKeyRepeatInterval); callListenerOnPressAndCheckKeyboardLayoutChange(key, repeatCount); |