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/Constants.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/Constants.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Constants.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/Constants.java b/java/src/com/android/inputmethod/latin/Constants.java index 0477133d7..0b396b1de 100644 --- a/java/src/com/android/inputmethod/latin/Constants.java +++ b/java/src/com/android/inputmethod/latin/Constants.java @@ -217,8 +217,9 @@ public final class Constants { public static final int CODE_EMOJI = -11; public static final int CODE_SHIFT_ENTER = -12; public static final int CODE_SYMBOL_SHIFT = -13; + public static final int CODE_ALPHA_FROM_EMOJI = -14; // Code value representing the code is not specified. - public static final int CODE_UNSPECIFIED = -14; + public static final int CODE_UNSPECIFIED = -15; public static boolean isLetterCode(final int code) { return code >= CODE_SPACE; @@ -241,6 +242,7 @@ public final class Constants { case CODE_UNSPECIFIED: return "unspec"; case CODE_TAB: return "tab"; case CODE_ENTER: return "enter"; + case CODE_ALPHA_FROM_EMOJI: return "alpha"; default: if (code < CODE_SPACE) return String.format("'\\u%02x'", code); if (code < 0x100) return String.format("'%c'", code); |