Skip to content
Commit 13f696dc authored by Vaibhav Devmurari's avatar Vaibhav Devmurari
Browse files

Refactor PWM to fully capture shortcut gesture

Currently some keys and shortcuts are partially captured. So,
a part of the key event gesture is sent to applications and a part
of it is not.
Make sure keys and shortcuts are tracked from first action down, and
if they are intercepted the whole key event gesture, down, repeated
down, up are all intercepted.
Example: In the current logic some keys were getting captured only
on first ACTION_DOWN, this means applications were still receiving
ACTION_UP which they should not since they didn't receive the down
event.

Further refactoring: Fix interceptBeforeQueuing and separate the logic
to a separate file to handle shortcuts and add more strict testing.

Test: manual
Bug: 283241997
Change-Id: Ia48086458c86b35c00e01b4a960f6a9bfb80bae9
parent 04a2e09f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment