Skip to content
Snippets Groups Projects
Commit ad662ade authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Disable delete key repeating while in slide input mode

Bug: 8915171
Change-Id: I04f84c29f10abc0207072d2165c75dd20f053f92
parent 18184eac
No related branches found
No related tags found
No related merge requests found
...@@ -1247,10 +1247,13 @@ public final class PointerTracker implements PointerTrackerQueue.Element { ...@@ -1247,10 +1247,13 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
} }
private void startRepeatKey(final Key key) { private void startRepeatKey(final Key key) {
if (key != null && key.isRepeatable() && !sInGesture) { if (sInGesture) return;
onRegisterKey(key); if (key == null) return;
mTimerProxy.startKeyRepeatTimer(this); 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) { public void onRegisterKey(final Key key) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment