How to react to longpress events?

It seems rather arduous to detect and react to these events with the current API.

I wonder if there’s any interest in exposing a new API for this purpose?

I think it would be a big improvement.