diff --git a/api/current.txt b/api/current.txt index ac6d80a78d748..ef8fec214b1ea 100644 --- a/api/current.txt +++ b/api/current.txt @@ -45764,6 +45764,7 @@ package android.view { field public static final int KEYCODE_PROG_YELLOW = 185; // 0xb9 field public static final int KEYCODE_Q = 45; // 0x2d field public static final int KEYCODE_R = 46; // 0x2e + field public static final int KEYCODE_REFRESH = 285; // 0x11d field public static final int KEYCODE_RIGHT_BRACKET = 72; // 0x48 field public static final int KEYCODE_RO = 217; // 0xd9 field public static final int KEYCODE_S = 47; // 0x2f diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java index ed2b8b61fe014..a59740563ceb1 100644 --- a/core/java/android/view/KeyEvent.java +++ b/core/java/android/view/KeyEvent.java @@ -806,8 +806,10 @@ public class KeyEvent extends InputEvent implements Parcelable { public static final int KEYCODE_SYSTEM_NAVIGATION_RIGHT = 283; /** Key code constant: Show all apps */ public static final int KEYCODE_ALL_APPS = 284; + /** Key code constant: Refresh key. */ + public static final int KEYCODE_REFRESH = 285; - private static final int LAST_KEYCODE = KEYCODE_ALL_APPS; + private static final int LAST_KEYCODE = KEYCODE_REFRESH; // NOTE: If you add a new keycode here you must also add it to: // isSystem() diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 4d80b2f0c00b6..354d65811164b 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -1897,6 +1897,7 @@ + diff --git a/data/keyboards/Generic.kl b/data/keyboards/Generic.kl index 74f8c71da09f1..8699cb491dffa 100644 --- a/data/keyboards/Generic.kl +++ b/data/keyboards/Generic.kl @@ -192,7 +192,7 @@ key 169 CALL # key 170 "KEY_ISO" key 171 MUSIC key 172 HOME -# key 173 "KEY_REFRESH" +key 173 REFRESH # key 174 "KEY_EXIT" # key 175 "KEY_MOVE" # key 176 "KEY_EDIT"