am ad662ade: Disable delete key repeating while in slide input mode

* commit 'ad662adeef10c4b202f8f5f80037dd5b8fc9583d':
  Disable delete key repeating while in slide input mode
This commit is contained in:
Tadashi G. Takaoka 2013-05-13 01:43:38 -07:00 committed by Android Git Automerger
commit 094447bd46

View file

@ -1247,10 +1247,13 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
}
private void startRepeatKey(final Key key) {
if (key != null && key.isRepeatable() && !sInGesture) {
onRegisterKey(key);
mTimerProxy.startKeyRepeatTimer(this);
}
if (sInGesture) return;
if (key == null) return;
if (!key.isRepeatable()) return;
// Don't start key repeat when we are in sliding input mode.
if (mIsInSlidingKeyInputFromModifier) return;
onRegisterKey(key);
mTimerProxy.startKeyRepeatTimer(this);
}
public void onRegisterKey(final Key key) {