Keep touch mode for the key event triggered by gesture
Bug: 267391997
Test: atest --host libinput_tests inputflinger_tests
Change-Id: I686cb8f9dff01f5964f40518ea60509d806b8d8f
diff --git a/include/input/Input.h b/include/input/Input.h
index e8af5f7..b5959fb 100644
--- a/include/input/Input.h
+++ b/include/input/Input.h
@@ -243,6 +243,7 @@
// Indicates that the key represents a special gesture that has been detected by
// the touch firmware or driver. Causes touch events from the same device to be canceled.
+ // This policy flag prevents key events from changing touch mode state.
POLICY_FLAG_GESTURE = 0x00000008,
POLICY_FLAG_RAW_MASK = 0x0000ffff,