am d5c89d64: am 6474ef99: Merge "[HW16] Implement processing event chains." into lmp-dev

* commit 'd5c89d64901f1fe7085e6c217d0c2fc19853b032':
  [HW16] Implement processing event chains.
This commit is contained in:
Jean Chalard 2014-08-05 13:25:58 +00:00 committed by Android Git Automerger
commit 6745f337c1

View file

@ -426,13 +426,17 @@ public final class InputLogic {
cancelDoubleSpacePeriodCountdown();
}
if (processedEvent.isConsumed()) {
handleConsumedEvent(processedEvent, inputTransaction);
} else if (processedEvent.isFunctionalKeyEvent()) {
handleFunctionalEvent(processedEvent, inputTransaction, currentKeyboardScriptId,
handler);
} else {
handleNonFunctionalEvent(processedEvent, inputTransaction, handler);
Event currentEvent = processedEvent;
while (null != currentEvent) {
if (currentEvent.isConsumed()) {
handleConsumedEvent(currentEvent, inputTransaction);
} else if (currentEvent.isFunctionalKeyEvent()) {
handleFunctionalEvent(currentEvent, inputTransaction, currentKeyboardScriptId,
handler);
} else {
handleNonFunctionalEvent(currentEvent, inputTransaction, handler);
}
currentEvent = currentEvent.mNextEvent;
}
if (!inputTransaction.didAutoCorrect() && processedEvent.mKeyCode != Constants.CODE_SHIFT
&& processedEvent.mKeyCode != Constants.CODE_CAPSLOCK