Start typing timer when key is pressed

Bug: 6327144
Change-Id: I5df0073ff38ac25e46455ef459121528c86a8dbe
This commit is contained in:
Tadashi G. Takaoka 2012-04-12 17:51:57 +09:00
parent 45213ed2a6
commit 0f87ca72f7

View File

@ -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();
}
}
}