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

Commit 278c5d85 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari
Browse files

Add new policy flag to notify if a key gesture was triggred

Policy needs to be passed a key event even if the key event was
used in a gesture (to maintain state). So use this flag to inform
policy that a key gesture was done using the KeyEvent

Test: None
Bug: 358569822
Flag: EXEMPT refactor
Change-Id: I431377df09080ae42d467b610d234b0f7734e025
parent c420be83
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -48,6 +48,12 @@ interface IInputConstants
     */
    const int POLICY_FLAG_INJECTED_FROM_ACCESSIBILITY = 0x20000;

    /**
     * The key event triggered a key gesture. Used in policy flag to notify that a key gesture was
     * triggered using the event.
     */
    const int POLICY_FLAG_KEY_GESTURE_TRIGGERED = 0x40000;

    /**
     * Common input event flag used for both motion and key events for a gesture or pointer being
     * canceled.