From ea84cff8fd9f5efbe42bf0f07b2adfeeb4352fb6 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Wed, 21 Oct 2015 18:08:30 +0100 Subject: Add new Cut / Copy / Paste keys. Bug: 25120948 Change-Id: I401792b8c88584d8c389fa356186ccea943d5dd4 --- core/java/android/view/KeyEvent.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'core/java/android/view/KeyEvent.java') 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() -- cgit v1.2.3