Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f14b37a8 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari
Browse files

Add native side keycodes for emoji and screenshot

Bug: 315307777
Test: manual
Change-Id: I737a7418f43afac4735bb1a5523713890f4df553
parent 1b685dd3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -839,6 +839,10 @@ enum {
    AKEYCODE_MACRO_3 = 315,
    /** User customizable key #4. */
    AKEYCODE_MACRO_4 = 316,
    /** Open Emoji picker */
    AKEYCODE_EMOJI_PICKER = 317,
    /** Take Screenshot */
    AKEYCODE_SCREENSHOT = 318,

    // 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.
+3 −1
Original line number Diff line number Diff line
@@ -348,7 +348,9 @@ namespace android {
    DEFINE_KEYCODE(MACRO_1), \
    DEFINE_KEYCODE(MACRO_2), \
    DEFINE_KEYCODE(MACRO_3), \
    DEFINE_KEYCODE(MACRO_4)
    DEFINE_KEYCODE(MACRO_4), \
    DEFINE_KEYCODE(EMOJI_PICKER), \
    DEFINE_KEYCODE(SCREENSHOT)

// NOTE: If you add a new axis here you must also add it to several other files.
//       Refer to frameworks/base/core/java/android/view/MotionEvent.java for the full list.