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