Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can an App detect a long physical button press?

Is it possible to disable the system "long press" of the left button in an App, so the App can detect it?

 

What constitutes a "long press" of the left button, in milliseconds ?

Author | ch, passion for improvement.

Best Answer
0 Votes
2 REPLIES 2

Untested: try listening for document.onkeypress and call preventDefault() on the event.

Peter McLennan
Gondwana Software
Best Answer

Thanks, the preventDefault() only disables exit unfortunately. It doesn't disable the long press of the left button.

Author | ch, passion for improvement.

Best Answer
0 Votes