Loading core/java/android/view/KeyEvent.java +8 −3 Original line number Diff line number Diff line Loading @@ -129,6 +129,11 @@ public class KeyEvent implements Parcelable { public static final int KEYCODE_FUNC_7 = 98; public static final int KEYCODE_FUNC_8 = 99; public static final int KEYCODE_QUECHAR = 100; public static final int KEYCODE_USER1 = 101; public static final int KEYCODE_USER2 = 102; public static final int KEYCODE_USER3 = 103; public static final int KEYCODE_USER4 = 104; public static final int KEYCODE_USER5 = 105; // NOTE: If you add a new keycode here you must also add it to: // isSystem() Loading @@ -144,7 +149,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_QUECHAR; private static final int LAST_KEYCODE = KEYCODE_USER5; /** * @deprecated There are now more than MAX_KEYCODE keycodes. Loading core/res/res/values/attrs.xml +6 −1 Original line number Diff line number Diff line Loading @@ -925,6 +925,11 @@ <enum name="KEYCODE_FUNC_7" value="98" /> <enum name="KEYCODE_FUNC_8" value="99" /> <enum name="KEYCODE_QUECHAR" value="100" /> <enum name="KEYCODE_USER1" value="101" /> <enum name="KEYCODE_USER2" value="102" /> <enum name="KEYCODE_USER3" value="103" /> <enum name="KEYCODE_USER4" value="104" /> <enum name="KEYCODE_USER5" value="105" /> </attr> <!-- ***************************************************************** --> Loading include/ui/KeycodeLabels.h +11 −1 Original line number Diff line number Diff line Loading @@ -123,6 +123,11 @@ static const KeycodeLabel KEYCODES[] = { { "FUNC_7", 98 }, { "FUNC_8", 99 }, { "QUECHAR", 100 }, { "USER1", 101 }, { "USER2", 102 }, { "USER3", 103 }, { "USER4", 104 }, { "USER5", 105 }, // NOTE: If you add a new keycode here you must also add it to: // (enum KeyCode, in this file) Loading Loading @@ -236,7 +241,12 @@ typedef enum KeyCode { kKeyCodeFunc6 = 97, kKeyCodeFunc7 = 98, kKeyCodeFunc8 = 99, kKeyCodeQuechar = 100 kKeyCodeQuechar = 100, kKeyCodeUser1 = 101, kKeyCodeUser2 = 102, kKeyCodeUser3 = 103, kKeyCodeUser4 = 104, kKeyCodeUser5 = 105 } KeyCode; static const KeycodeLabel FLAGS[] = { Loading Loading
core/java/android/view/KeyEvent.java +8 −3 Original line number Diff line number Diff line Loading @@ -129,6 +129,11 @@ public class KeyEvent implements Parcelable { public static final int KEYCODE_FUNC_7 = 98; public static final int KEYCODE_FUNC_8 = 99; public static final int KEYCODE_QUECHAR = 100; public static final int KEYCODE_USER1 = 101; public static final int KEYCODE_USER2 = 102; public static final int KEYCODE_USER3 = 103; public static final int KEYCODE_USER4 = 104; public static final int KEYCODE_USER5 = 105; // NOTE: If you add a new keycode here you must also add it to: // isSystem() Loading @@ -144,7 +149,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_QUECHAR; private static final int LAST_KEYCODE = KEYCODE_USER5; /** * @deprecated There are now more than MAX_KEYCODE keycodes. Loading
core/res/res/values/attrs.xml +6 −1 Original line number Diff line number Diff line Loading @@ -925,6 +925,11 @@ <enum name="KEYCODE_FUNC_7" value="98" /> <enum name="KEYCODE_FUNC_8" value="99" /> <enum name="KEYCODE_QUECHAR" value="100" /> <enum name="KEYCODE_USER1" value="101" /> <enum name="KEYCODE_USER2" value="102" /> <enum name="KEYCODE_USER3" value="103" /> <enum name="KEYCODE_USER4" value="104" /> <enum name="KEYCODE_USER5" value="105" /> </attr> <!-- ***************************************************************** --> Loading
include/ui/KeycodeLabels.h +11 −1 Original line number Diff line number Diff line Loading @@ -123,6 +123,11 @@ static const KeycodeLabel KEYCODES[] = { { "FUNC_7", 98 }, { "FUNC_8", 99 }, { "QUECHAR", 100 }, { "USER1", 101 }, { "USER2", 102 }, { "USER3", 103 }, { "USER4", 104 }, { "USER5", 105 }, // NOTE: If you add a new keycode here you must also add it to: // (enum KeyCode, in this file) Loading Loading @@ -236,7 +241,12 @@ typedef enum KeyCode { kKeyCodeFunc6 = 97, kKeyCodeFunc7 = 98, kKeyCodeFunc8 = 99, kKeyCodeQuechar = 100 kKeyCodeQuechar = 100, kKeyCodeUser1 = 101, kKeyCodeUser2 = 102, kKeyCodeUser3 = 103, kKeyCodeUser4 = 104, kKeyCodeUser5 = 105 } KeyCode; static const KeycodeLabel FLAGS[] = { Loading