Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[powerkey] Ignore bursts of power key presses. Fixes JB#37181
In some individual devices pressing power key button can cause a bursts of power key press and release events to be emitted - so that pressing power key just once invokes actions bound to double presses. Wear and tear can make the problem more likely to occur also in devices that initially function just fine. Assume power key presses that happen less than 50 milliseconds after the previous power key release are caused by hw faults and ignore them. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters