diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-05-05 13:49:58 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-05-05 13:49:58 -0700 |
commit | 1e936da287e1836502bf91b53468076726b7e1ee (patch) | |
tree | ba88d03eabc5379766114d8fde330c8f758db0d7 /core/java/android/view/KeyEvent.java | |
parent | 0938ef4215869c36575684b9949e82e547dbb65c (diff) | |
parent | b032bc037399110f41cfdb838a792b3c65756323 (diff) | |
download | frameworks_base-1e936da287e1836502bf91b53468076726b7e1ee.zip frameworks_base-1e936da287e1836502bf91b53468076726b7e1ee.tar.gz frameworks_base-1e936da287e1836502bf91b53468076726b7e1ee.tar.bz2 |
Merge "Add new keycodes for the convenience of Japanese IMEs"
Diffstat (limited to 'core/java/android/view/KeyEvent.java')
-rwxr-xr-x[-rw-r--r--] | core/java/android/view/KeyEvent.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java index 14e0159..9aa16b5 100644..100755 --- a/core/java/android/view/KeyEvent.java +++ b/core/java/android/view/KeyEvent.java @@ -122,6 +122,8 @@ public class KeyEvent implements Parcelable { public static final int KEYCODE_MUTE = 91; public static final int KEYCODE_PAGE_UP = 92; public static final int KEYCODE_PAGE_DOWN = 93; + public static final int KEYCODE_PICTSYMBOLS = 94; // switch symbol-sets (Emoji,Kao-moji) + public static final int KEYCODE_SWITCH_CHARSET = 95; // switch char-sets (Kanji,Katakana) // NOTE: If you add a new keycode here you must also add it to: // isSystem() @@ -137,7 +139,7 @@ public class KeyEvent implements Parcelable { // those new codes. This is intended to maintain a consistent // set of key code definitions across all Android devices. - private static final int LAST_KEYCODE = KEYCODE_PAGE_DOWN; + private static final int LAST_KEYCODE = KEYCODE_SWITCH_CHARSET; /** * @deprecated There are now more than MAX_KEYCODE keycodes. @@ -694,6 +696,8 @@ public class KeyEvent implements Parcelable { case KEYCODE_CAMERA: case KEYCODE_FOCUS: case KEYCODE_SEARCH: + case KEYCODE_PICTSYMBOLS: + case KEYCODE_SWITCH_CHARSET: return true; default: return false; |