Listen to keyboard events
Is there a way to have listeners for keyboard events like "when return key pressed" or when "space key pressed"…
It would allow me to send an xhr request before hiding the keyboard for a seamless user esperience
1 Answer
-
I know this is an old question, but here's my answer:
You should listen to the textField's "return" event for the "when return key pressed" and add your xhr call in there.
http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.TextField-event-return