summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2015-10-21 18:09:02 +0100
committer Michael Wright <michaelwr@google.com> 2015-10-21 18:09:02 +0100
commite30f7e1e9ec2be958bbea54f3a09f509fc0a44f7 (patch)
treecb291ab6216defc764750547fa2df91aadae83f9 /include
parenta1bbfab4e154b78aa985b3e00d73236f2267ff99 (diff)
Add new Cut / Copy / Paste keys
Bug: 25120948 Change-Id: Ic2569b1d542fb3fd4159d8c08fe65beeb8b656d7
Diffstat (limited to 'include')
-rw-r--r--include/android/keycodes.h8
-rw-r--r--include/input/InputEventLabels.h3
2 files changed, 10 insertions, 1 deletions
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 }
};