Disable delete key repeating while in slide input mode

Bug: 8915171
Change-Id: I04f84c29f10abc0207072d2165c75dd20f053f92
main
Tadashi G. Takaoka 2013-05-13 17:05:03 +09:00
parent 18184eacb1
commit ad662adeef
1 changed files with 7 additions and 4 deletions

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) {