From e30f7e1e9ec2be958bbea54f3a09f509fc0a44f7 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Wed, 21 Oct 2015 18:09:02 +0100 Subject: Add new Cut / Copy / Paste keys Bug: 25120948 Change-Id: Ic2569b1d542fb3fd4159d8c08fe65beeb8b656d7 --- include/android/keycodes.h | 8 +++++++- include/input/InputEventLabels.h | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/android/keycodes.h b/include/android/keycodes.h index ac07190fc5..67e28da815 100644 --- a/include/android/keycodes.h +++ b/include/android/keycodes.h @@ -751,7 +751,13 @@ enum { * Steps media backward one from at a time. */ AKEYCODE_MEDIA_STEP_BACKWARD = 275, /** Put device to sleep unless a wakelock is held. */ - AKEYCODE_SOFT_SLEEP = 276 + AKEYCODE_SOFT_SLEEP = 276, + /** Cut key. */ + AKEYCODE_CUT = 277, + /** Copy key. */ + AKEYCODE_COPY = 278, + /** Paste key. */ + AKEYCODE_PASTE = 279 // NOTE: If you add a new keycode here you must also add it to several other files. // Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list. diff --git a/include/input/InputEventLabels.h b/include/input/InputEventLabels.h index efc1687667..b7012eb32b 100644 --- a/include/input/InputEventLabels.h +++ b/include/input/InputEventLabels.h @@ -316,6 +316,9 @@ static const InputEventLabel KEYCODES[] = { DEFINE_KEYCODE(MEDIA_STEP_FORWARD), DEFINE_KEYCODE(MEDIA_STEP_BACKWARD), DEFINE_KEYCODE(SOFT_SLEEP), + DEFINE_KEYCODE(CUT), + DEFINE_KEYCODE(COPY), + DEFINE_KEYCODE(PASTE), { NULL, 0 } }; -- cgit v1.2.3-59-g8ed1b