aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/InputAttributes.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-05-08 13:10:57 +0900
committerTadashi G. Takaoka <takaoka@google.com>2012-05-08 13:20:39 +0900
commit0b831ba2aaf7baf7be402f2245b225a04c28fada (patch)
treeec6f249e13efd1f3fc616d39efbe2415ad967fda /java/src/com/android/inputmethod/latin/InputAttributes.java
parent22d196cb178e31d3aac23a1d34c5032299dc8bb5 (diff)
downloadlatinime-0b831ba2aaf7baf7be402f2245b225a04c28fada.tar.gz
latinime-0b831ba2aaf7baf7be402f2245b225a04c28fada.tar.xz
latinime-0b831ba2aaf7baf7be402f2245b225a04c28fada.zip
Tab key preforms next action when EditorInfo.IME_ACTION_NEXT is specified
Bug: 6435484 Change-Id: Iccca7d1b770c547efae0b5e5931cebd910083d40
Diffstat (limited to 'java/src/com/android/inputmethod/latin/InputAttributes.java')
-rw-r--r--java/src/com/android/inputmethod/latin/InputAttributes.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/InputAttributes.java b/java/src/com/android/inputmethod/latin/InputAttributes.java
index 9c32f947c..229ae2f3c 100644
--- a/java/src/com/android/inputmethod/latin/InputAttributes.java
+++ b/java/src/com/android/inputmethod/latin/InputAttributes.java
@@ -29,6 +29,7 @@ public class InputAttributes {
final public boolean mInputTypeNoAutoCorrect;
final public boolean mIsSettingsSuggestionStripOn;
final public boolean mApplicationSpecifiedCompletionOn;
+ final public int mEditorAction;
public InputAttributes(final EditorInfo editorInfo, final boolean isFullscreenMode) {
final int inputType = null != editorInfo ? editorInfo.inputType : 0;
@@ -91,6 +92,8 @@ public class InputAttributes {
mApplicationSpecifiedCompletionOn = flagAutoComplete && isFullscreenMode;
}
+ mEditorAction = (editorInfo == null) ? EditorInfo.IME_ACTION_UNSPECIFIED
+ : editorInfo.imeOptions & EditorInfo.IME_MASK_ACTION;
}
@SuppressWarnings("unused")