Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked June 2nd 2010 by michel perrin
  • events
  • keyboard
  • listener
  • returenkey
0 Comments

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

    — answered October 24th 2013 by Stevo Perisic
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.