diff options
| author | Michael Wright <michaelwr@google.com> | 2015-10-21 18:08:30 +0100 |
|---|---|---|
| committer | Michael Wright <michaelwr@google.com> | 2015-10-21 18:08:30 +0100 |
| commit | ea84cff8fd9f5efbe42bf0f07b2adfeeb4352fb6 (patch) | |
| tree | 1a3b9210c979e63a49440c4fe1e8667f816e4c49 /core/java/android | |
| parent | d3c1c231b60b4db9ddb3fa0f84d45dd02c77069a (diff) | |
Add new Cut / Copy / Paste keys.
Bug: 25120948
Change-Id: I401792b8c88584d8c389fa356186ccea943d5dd4
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/KeyEvent.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java index 1c20cab55a5d..55cf56ff7c9f 100644 --- a/core/java/android/view/KeyEvent.java +++ b/core/java/android/view/KeyEvent.java @@ -790,8 +790,14 @@ public class KeyEvent extends InputEvent implements Parcelable { public static final int KEYCODE_MEDIA_STEP_BACKWARD = 275; /** Key code constant: put device to sleep unless a wakelock is held. */ public static final int KEYCODE_SOFT_SLEEP = 276; - - private static final int LAST_KEYCODE = KEYCODE_SOFT_SLEEP; + /** Key code constant: Cut key. */ + public static final int KEYCODE_CUT = 277; + /** Key code constant: Copy key. */ + public static final int KEYCODE_COPY = 278; + /** Key code constant: Paste key. */ + public static final int KEYCODE_PASTE = 279; + + private static final int LAST_KEYCODE = KEYCODE_PASTE; // NOTE: If you add a new keycode here you must also add it to: // isSystem() |
