[HW16] Implement processing event chains.
Change-Id: I4e1e4f101050ebda77c629a61c548d3c8efb330f
This commit is contained in:
parent
f69bb4c7a3
commit
0a2872cb44
1 changed files with 11 additions and 7 deletions
|
@ -426,13 +426,17 @@ public final class InputLogic {
|
|||
cancelDoubleSpacePeriodCountdown();
|
||||
}
|
||||
|
||||
if (processedEvent.isConsumed()) {
|
||||
handleConsumedEvent(processedEvent, inputTransaction);
|
||||
} else if (processedEvent.isFunctionalKeyEvent()) {
|
||||
handleFunctionalEvent(processedEvent, inputTransaction, currentKeyboardScriptId,
|
||||
Event currentEvent = processedEvent;
|
||||
while (null != currentEvent) {
|
||||
if (currentEvent.isConsumed()) {
|
||||
handleConsumedEvent(currentEvent, inputTransaction);
|
||||
} else if (currentEvent.isFunctionalKeyEvent()) {
|
||||
handleFunctionalEvent(currentEvent, inputTransaction, currentKeyboardScriptId,
|
||||
handler);
|
||||
} else {
|
||||
handleNonFunctionalEvent(processedEvent, inputTransaction, handler);
|
||||
handleNonFunctionalEvent(currentEvent, inputTransaction, handler);
|
||||
}
|
||||
currentEvent = currentEvent.mNextEvent;
|
||||
}
|
||||
if (!inputTransaction.didAutoCorrect() && processedEvent.mKeyCode != Constants.CODE_SHIFT
|
||||
&& processedEvent.mKeyCode != Constants.CODE_CAPSLOCK
|
||||
|
|
Loading…
Reference in a new issue