diff options
author | 2014-03-20 08:32:36 +0000 | |
---|---|---|
committer | 2014-03-20 08:32:36 +0000 | |
commit | 83372e75e4fc030e77de470e08cf7012436c759a (patch) | |
tree | 88ef7e0ca857758c6c2ca80260234004211e7365 /java/src/com/android/inputmethod/event/DeadKeyCombiner.java | |
parent | f64a9d8fd6d764adc002e854246385e682821c2c (diff) | |
parent | f2bb15b0ab212e1ef45be2d2ea6610cfa9c9f15c (diff) | |
download | latinime-83372e75e4fc030e77de470e08cf7012436c759a.tar.gz latinime-83372e75e4fc030e77de470e08cf7012436c759a.tar.xz latinime-83372e75e4fc030e77de470e08cf7012436c759a.zip |
Merge "[CB09] Pass events through the combiner chain"
Diffstat (limited to 'java/src/com/android/inputmethod/event/DeadKeyCombiner.java')
-rw-r--r-- | java/src/com/android/inputmethod/event/DeadKeyCombiner.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/event/DeadKeyCombiner.java b/java/src/com/android/inputmethod/event/DeadKeyCombiner.java index ae8639713..f77ce6347 100644 --- a/java/src/com/android/inputmethod/event/DeadKeyCombiner.java +++ b/java/src/com/android/inputmethod/event/DeadKeyCombiner.java @@ -21,14 +21,17 @@ import android.view.KeyCharacterMap; import com.android.inputmethod.latin.Constants; +import java.util.ArrayList; + /** * A combiner that handles dead keys. */ public class DeadKeyCombiner implements Combiner { + // TODO: make this a list of events instead final StringBuilder mDeadSequence = new StringBuilder(); @Override - public Event combine(final Event event) { + public Event processEvent(final ArrayList<Event> previousEvents, final Event event) { if (null == event) return null; // Just in case some combiner is broken if (TextUtils.isEmpty(mDeadSequence)) { if (event.isDead()) { |