diff options
author | 2014-01-28 16:54:07 +0900 | |
---|---|---|
committer | 2014-01-28 19:30:27 +0900 | |
commit | 576f8a5b72b550c5d610ccf9014e19db4a9cb8c9 (patch) | |
tree | f9fcfc1c20a52c0eb2b937f70ddfd7b4f8187317 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | 437fa64af3dfe4785b217177c0c357a75584efbd (diff) | |
download | latinime-576f8a5b72b550c5d610ccf9014e19db4a9cb8c9.tar.gz latinime-576f8a5b72b550c5d610ccf9014e19db4a9cb8c9.tar.xz latinime-576f8a5b72b550c5d610ccf9014e19db4a9cb8c9.zip |
Fix inconsistent behavior with the back-to-the-main-keyboard key
With this patch, the back-to-the-main-keyboard in the Emoji
palette will be registered as a key-release action instead of
a key-press action, like switch-to-the-emoji-palette in the
main layout. This provides mroe consistent UX when the layout is
switched from the main layout to the Emoji palette then
switched back to the main layout.
BUG: 12464067
Change-Id: Ia0d0185db43234dfcfb7cee2677f3d199fe6ed96
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index 43d75330d..16e032051 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -349,6 +349,10 @@ public final class InputLogic { didAutoCorrect = handleNonSpecialCharacter(settingsValues, Constants.CODE_ENTER, x, y, spaceState, keyboardSwitcher, handler); break; + case Constants.CODE_ALPHA_FROM_EMOJI: + // Note: Switching back from Emoji keyboard to the main keyboard is being handled in + // {@link KeyboardState#onCodeInput(int,int)}. + break; default: didAutoCorrect = handleNonSpecialCharacter(settingsValues, code, x, y, spaceState, keyboardSwitcher, handler); |