aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/Event.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-13 05:18:43 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-13 05:18:43 -0700
commit207cb1cb6a1934b8ef189e1cd7e4791d462387d6 (patch)
tree94e4c56083181cbeeb271fe4ace834a1b2ad8dfe /java/src/com/android/inputmethod/event/Event.java
parent2431a4fdd92e0889c44174ff7bb3d11fb1e5e3bb (diff)
parent309773c322adb383a05cf673fd8d8a8339dcb076 (diff)
downloadlatinime-207cb1cb6a1934b8ef189e1cd7e4791d462387d6.tar.gz
latinime-207cb1cb6a1934b8ef189e1cd7e4791d462387d6.tar.xz
latinime-207cb1cb6a1934b8ef189e1cd7e4791d462387d6.zip
am 309773c3: Merge "[CB03] Pass whole events to the various input logic handlers."
* commit '309773c322adb383a05cf673fd8d8a8339dcb076': [CB03] Pass whole events to the various input logic handlers.
Diffstat (limited to 'java/src/com/android/inputmethod/event/Event.java')
-rw-r--r--java/src/com/android/inputmethod/event/Event.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/event/Event.java b/java/src/com/android/inputmethod/event/Event.java
index 31092f176..a4a17e12d 100644
--- a/java/src/com/android/inputmethod/event/Event.java
+++ b/java/src/com/android/inputmethod/event/Event.java
@@ -130,6 +130,12 @@ public class Event {
return 0 != (FLAG_DEAD & mFlags);
}
+ // Returns whether this is a fake key press from the suggestion strip. This happens with
+ // punctuation signs selected from the suggestion strip.
+ public boolean isSuggestionStripPress() {
+ return EVENT_INPUT_KEYPRESS == mType && Constants.SUGGESTION_STRIP_COORDINATE == mX;
+ }
+
// TODO: remove this method - we should not have to test this
public boolean isCommittable() {
return EVENT_INPUT_KEYPRESS == mType || EVENT_MODE_KEY == mType || EVENT_TOGGLE == mType;