Results 1 to 3 of 3

Thread: iPhone / Android Keyboard events

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    24
    Vote Rating
    0
      0  

    Default Answered: iPhone / Android Keyboard events

    Hi,

    Is it possible to detect when the native keyboard is open/close while the user is editing a TextAre?
    I want to show/hide some controls base on that. Is it possible? I don't see any events like this in the textarea documentation (list of events).

    Thanks!

  2. Listen for focus/blur events on the field.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    Listen for focus/blur events on the field.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User winkyboy's Avatar
    Join Date
    May 2012
    Posts
    3
    Vote Rating
    2
      1  

    Default

    Listening for focus/blur events on textfields is not the same as knowing whether or not the virtual keyboard is visible, unfortunately. For example, a user can click a field which makes the keyboard appear, but then they can press the keyboard key to hide the keyboard without losing focus on the field. In this case, then, the keyboard is hidden while the blur event has not happened.

    [Next Day Edit: ] My comments here do not necessarily relate to the OP's purpose; I apologize for that discrepancy. They do relate to Android keyboard events or lack thereof, however. I'll report my findings in a more-related thread.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •