Skip to main content
Participant
Apr 19, 2012 5:58 AM UTC
Answered

Input field not pulling keyboard up (iOS)

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 is closed to new replies. Start a new post to keep the conversation going.
julifosCorrect answer
Inspiring
Apr 23, 2012 10:24 AM UTC

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

5 replies

Participant
Apr 25, 2012 5:03 AM UTC

Fullscreen was the culprit! Thanks julifos and AirDoctrine!

Translate
Inspiring
Apr 20, 2012 9:19 PM UTC

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.

Translate
Participant
Apr 20, 2012 9:38 PM UTC

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.

Translate
julifosCorrect answer
Inspiring
Apr 23, 2012 10:24 AM UTC

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

Translate