I'm trying to detect how long a user is touching a key on a keyboard when she is typing, so that, for instance, I popup a dialog when a certain key is pressed for a long enough time.
Detecting this for a regular view is trivial with measuring the time between touchesEnded
and touchesBegan
. However, I don't receive any events from the keyboard. Any ideas on how one can receive touchesEnded
and touchesBegan
events from the keyboard?