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

Skip to content
Commit 0ffeb57a authored by Chen Bai's avatar Chen Bai
Browse files

clobber wom: implement onKeyUp for PowerKeyRule

- Apply the callback for power key. This is helpful for devices that
wish to trigger power key press behavior without waiting for
the delay needed to check for consecutive presses.

- Added a new config, `config_shortPressEarlyOnPower` to guard Power key's
usage of this callback. If this config is enabled, the single press
behavior for power key will run in response to the first key up event,
instead of using the `onPress` callback.

Test: atest WmTests:SingleKeyGestureTests
BUG: 305856148
Change-Id: I9f69c0352ecd8ee495dcbc0d9d5967635b02f69d
parent 2ff4cc3c
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