We’re trying to create a uikeyboard that will collect users key up and key down on every char press. The regular UITextField events gives us only the pressed change and not both of the times.
I’ve thought about trying to place a tranparent view over the keyboard but couldn’t get a reference to the keyboard view. Also thought about creating my own keyboard but couldn’t find any open source or online examples.
The ultimate goal is to get 2 callbacks on every key on the keyboard being pressed and for each click create an event with 2 timestamps (one for up and one for down) and the character that was pressed.
SOLVED:
Solved using a custom UIView that implements touchesBegin, touchesMoved, touchesEnded methods and forward the touches using hiTest function back to the main UIWindow.
Uri.
You put a transparent view over the whole window by adding the view to the window itself (after the keyboard has popped!). Record all touchdowns and touchups and forward them. When you get a delegate message that a key was pressed, then you want know the last touches pair.