Skip to main content
Participating Frequently
September 19, 2013
Answered

Soft Keyboard not working in iOS 7 / AIR 3.9

  • September 19, 2013
  • 1 reply
  • 3673 views

Hi,

I've been transitioning my app to the latest AIR 3.9 beta for iOS 7, and I'm running into a wild issue. None of the text fields trigger the virtual keyboard anymore. The cursor is blinking, and if I select different textfields, the cursor moves there. But the soft keyboard doesn't appear. Come to think of it, it's possible I already had this behavior in 3.8, which I didn't stay in for long for debugging reasons, so I never released in 3.8.

Here is the condensed code as it relates. First the text field is created and then it's activated. But even with multiple text fields on the screen, tapping between them doesn't trigger the keyboard.

// Creation

label.enabled = true;
label.autoCapitalize = AutoCapitalize.SENTENCE;
label.softKeyboardType = SoftKeyboardType.DEFAULT;

// Activation

label.setFocus();
label.needsSoftKeyboard = true;
label.requestSoftKeyboard();

Is there something I'm doing wrong that I'm missing that's maybe suddenly incompatible?

Thanks,

Per

This topic has been closed for replies.
Correct answer nimitja

This is really unfortunate you are seeing this. I have tried a sample application using softkeyboard and stageText but could not able to reproduce the problem. I have attached the sample app https://www.dropbox.com/s/imyc6d21ofx12nj/Softkeyboard.zip for your reference, could you please try it once and update if I have missed anything.

Device used: iPhone 5(v7.0)

Regards,

Nimit

1 reply

nimitjaCorrect answer
Adobe Employee
September 19, 2013

This is really unfortunate you are seeing this. I have tried a sample application using softkeyboard and stageText but could not able to reproduce the problem. I have attached the sample app https://www.dropbox.com/s/imyc6d21ofx12nj/Softkeyboard.zip for your reference, could you please try it once and update if I have missed anything.

Device used: iPhone 5(v7.0)

Regards,

Nimit

PerHlom2Author
Participating Frequently
September 19, 2013

Success!

I have been using TextFields and TextAreas in the app, and since 3.8/3.9, they don't invoke the keyboard anymore. I've now implemented your example directly into the app, and I can confirm that using StageText directly works. Presumably, I have been using a feature that has been deprecated. Is it intended that TextFields and TextAreas should no longer invoke the keyboard? I need to do some re-coding to move to StageText, but the bottom line is that I have a solution.

I want to personally thank you for you excellent response, I'm delighted to see this commitment from Adobe.

Cheers,

Per

Adobe Employee
September 19, 2013

Great.

-Nimit