aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2013-09-25 14:14:14 +0900
committerSatoshi Kataoka <satok@google.com>2013-09-25 14:15:43 +0900
commit0938fb6913c10d32f0a870210fc208c7bbfe282c (patch)
tree3cff25d857c048a4947a67dff349744a3a400089 /java/src
parent9c3b2dbe3434fbe5117b66fa4911c8de0ea6bde6 (diff)
downloadlatinime-0938fb6913c10d32f0a870210fc208c7bbfe282c.tar.gz
latinime-0938fb6913c10d32f0a870210fc208c7bbfe282c.tar.xz
latinime-0938fb6913c10d32f0a870210fc208c7bbfe282c.zip
Allow gesture from the delete key
And inputting unexpected word while repeating the gesture Bug: 7303982 Change-Id: I17bb6a689397500fa0e26706d6e07e427ea0b4d7
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/keyboard/PointerTracker.java6
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);