am f52aef84: Merge "Tab key preforms next action when EditorInfo.IME_ACTION_NEXT is specified" into jb-dev
* commit 'f52aef84a582197d6f8e580044b2d24d2a710cef': Tab key preforms next action when EditorInfo.IME_ACTION_NEXT is specifiedmain
commit
3b0f0b57ff
|
@ -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")
|
||||
|
|
|
@ -1266,6 +1266,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
handleLanguageSwitchKey();
|
||||
break;
|
||||
default:
|
||||
if (primaryCode == Keyboard.CODE_TAB
|
||||
&& mInputAttributes.mEditorAction == EditorInfo.IME_ACTION_NEXT) {
|
||||
performEditorAction(EditorInfo.IME_ACTION_NEXT);
|
||||
break;
|
||||
}
|
||||
mSpaceState = SPACE_STATE_NONE;
|
||||
if (mSettingsValues.isWordSeparator(primaryCode)) {
|
||||
didAutoCorrect = handleSeparator(primaryCode, x, y, spaceState);
|
||||
|
|
Loading…
Reference in New Issue