Start typing timer when key is pressed
Bug: 6327144 Change-Id: I5df0073ff38ac25e46455ef459121528c86a8dbemain
parent
45213ed2a6
commit
0f87ca72f7
|
@ -248,6 +248,9 @@ public class PointerTracker {
|
|||
mListener.onPressKey(key.mCode);
|
||||
final boolean keyboardLayoutHasBeenChanged = mKeyboardLayoutHasBeenChanged;
|
||||
mKeyboardLayoutHasBeenChanged = false;
|
||||
if (!key.altCodeWhileTyping() && !key.isModifier()) {
|
||||
mTimerProxy.startTypingStateTimer();
|
||||
}
|
||||
return keyboardLayoutHasBeenChanged;
|
||||
}
|
||||
return false;
|
||||
|
@ -279,9 +282,6 @@ public class PointerTracker {
|
|||
} else if (code != Keyboard.CODE_UNSPECIFIED) {
|
||||
mListener.onCodeInput(code, x, y);
|
||||
}
|
||||
if (!key.altCodeWhileTyping() && !key.isModifier()) {
|
||||
mTimerProxy.startTypingStateTimer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -734,6 +734,9 @@ public class PointerTracker {
|
|||
public void onRepeatKey(Key key) {
|
||||
if (key != null) {
|
||||
detectAndSendKey(key, key.mX, key.mY);
|
||||
if (!key.altCodeWhileTyping() && !key.isModifier()) {
|
||||
mTimerProxy.startTypingStateTimer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue