diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2009-05-27 15:52:50 +0800 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-04-02 14:39:20 -0700 |
commit | 4fedd80c1d3997d62073518973b1fe09862ebaa5 (patch) | |
tree | f2fd4ba7050efc348b5bd3789c34af21b0dbaa0d /core | |
parent | ef9d148ad63e79b7ea1ecad49163f33a7d37aea1 (diff) | |
download | frameworks_base-4fedd80c1d3997d62073518973b1fe09862ebaa5.zip frameworks_base-4fedd80c1d3997d62073518973b1fe09862ebaa5.tar.gz frameworks_base-4fedd80c1d3997d62073518973b1fe09862ebaa5.tar.bz2 |
Add keycodes PageUp and PageDown
This is useful for applications like web browser.
Change-Id: Ie9262d5b75de87ecd0971407a7c3ce9aa6e4998e
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/view/KeyEvent.java | 4 | ||||
-rw-r--r-- | core/res/res/values/attrs.xml | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java index d4f9787..14e0159 100644 --- a/core/java/android/view/KeyEvent.java +++ b/core/java/android/view/KeyEvent.java @@ -120,6 +120,8 @@ public class KeyEvent implements Parcelable { public static final int KEYCODE_MEDIA_REWIND = 89; public static final int KEYCODE_MEDIA_FAST_FORWARD = 90; public static final int KEYCODE_MUTE = 91; + public static final int KEYCODE_PAGE_UP = 92; + public static final int KEYCODE_PAGE_DOWN = 93; // NOTE: If you add a new keycode here you must also add it to: // isSystem() @@ -135,7 +137,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_MUTE; + private static final int LAST_KEYCODE = KEYCODE_PAGE_DOWN; /** * @deprecated There are now more than MAX_KEYCODE keycodes. diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 68661ae..91256f1 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -912,6 +912,8 @@ <enum name="KEYCODE_MEDIA_REWIND" value="89" /> <enum name="KEYCODE_MEDIA_FAST_FORWARD" value="90" /> <enum name="KEYCODE_MUTE" value="91" /> + <enum name="KEYCODE_PAGE_UP" value="92" /> + <enum name="KEYCODE_PAGE_DOWN" value="93" /> </attr> <!-- ***************************************************************** --> |