[HW16] Implement processing event chains.

Change-Id: I4e1e4f101050ebda77c629a61c548d3c8efb330f
This commit is contained in:
Jean Chalard 2014-08-04 22:28:24 +09:00
parent f69bb4c7a3
commit 0a2872cb44

View file

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