07-03-2021 02:09 - edited 07-03-2021 02:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-03-2021 02:09 - edited 07-03-2021 02:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
07-03-2021 13:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-03-2021 13:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Untested: try listening for document.onkeypress and call preventDefault() on the event.
Gondwana Software
07-03-2021 21:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-03-2021 21:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks, the preventDefault() only disables exit unfortunately. It doesn't disable the long press of the left button.
Author | ch, passion for improvement.

