Skip to main content
Participant
April 19, 2012
Answered

Input field not pulling keyboard up (iOS)

  • April 19, 2012
  • 2 replies
  • 4920 views

I have set the textfield to classic text and is set as an input field. But when I tap it on iPad no keyboard.

Do I need to import anything first? Set focus on the textfield. Set anything in as3? Thanks.

This topic has been closed for replies.
Correct answer julifos

If you're lacking any libraries, the compiler would tell.

I had this problem and realized I was setting via AS3 the full-screen mode (which won't allow using the keyboard).

Here you have a working example you can use as a base to test:

http://recycledinformation.blogspot.com.es/2011/10/custom-text-entry-on-ios.html

2 replies

Participant
April 25, 2012

Fullscreen was the culprit! Thanks julifos and AirDoctrine!

Inspiring
April 20, 2012

I also do the following when making my text field visible (to bring up the iOS virtual keyboard).

When I checked the documentation a long time ago, it stated that some of this wasn't supported on iOS, but my testing on an actual device showed otherwise.

stage.focus = yourTextField;

yourTextField.setSelection(yourTextField.text.length, yourTextField.text.length);

yourTextField.requestSoftKeyboard();

Now if there was only an easy way to also automatically set the first letter to be capitalized when the user starts typing that would be great (may be this is supported now, haven't checked in a while).

I hope that helps.

Participant
April 20, 2012

Thanks AirDoctrine, do I need to import any libraries for the keyboard to pull up? I'm really doing something wrong, cause it still does not work.

Classic text on input text field. iPad2 running iOS 5.1. Authoring in Flash cs5.5 with AIR SDK 3.2 installed.

julifosCorrect answer
Inspiring
April 23, 2012

If you're lacking any libraries, the compiler would tell.

I had this problem and realized I was setting via AS3 the full-screen mode (which won't allow using the keyboard).

Here you have a working example you can use as a base to test:

http://recycledinformation.blogspot.com.es/2011/10/custom-text-entry-on-ios.html