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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,070
    Answers
    3976
    Vote Rating
    1394
      0  

    Default

    Listen for focus/blur events on the field.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •