Merge "[HW16] Implement processing event chains." into lmp-dev

main
Jean Chalard 2014-08-05 09:52:27 +00:00 committed by Android (Google) Code Review
commit 6474ef9925
1 changed files with 11 additions and 7 deletions

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