Results 1 to 2 of 2

Thread: Show keyboard on iOS automatically

  1. #1
    Sencha Premium Member
    Join Date
    May 2013
    Vote Rating

    Default Show keyboard on iOS automatically

    I am developing a sencha touch application for ipad. I'm stuck with one feature: when user sees a screen with text field, I need to focus on that field automatically so that iPad's keyboards shows up (design feature to save time on the flow).

    I trid to set focus on input when the screen is being shown. The following example works everywhere except iPad:

    So I added special "Set focus" button to test it in ipad and it works. But I got confused with this strange behaviour. Why I can set the focus using the button, but with the painted event in textfield I can't. And is there any way to solve this via painted event?
    I would appreciate any help from you! Thank you!

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Vote Rating


    iOS only sets focus when inside a touch event handler.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

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