Add new Cut / Copy / Paste keys.

Bug: 25120948
Change-Id: I401792b8c88584d8c389fa356186ccea943d5dd4
This commit is contained in:
Michael Wright
2015-10-21 18:08:30 +01:00
parent d3c1c231b6
commit ea84cff8fd
4 changed files with 16 additions and 1 deletions

View File

@@ -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;
/** 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_SOFT_SLEEP;
private static final int LAST_KEYCODE = KEYCODE_PASTE;
// NOTE: If you add a new keycode here you must also add it to:
// isSystem()