Skip to main content
Legend
October 4, 2012
Question

softKeyboard in iOS

  • October 4, 2012
  • 3 replies
  • 1722 views

Hi,

I'm struggling with a text editor issue in iOS. My customer uses RichEditableText in a web project and wants to use the same in iOS, but there is no softKeyboard support in iOS for this.

I've tried cobbling together something to act as an alias, but that doesn't request the keyboard either.

So it looks as if I am limited to either TextArea or TextInput for request of soft keyboard? But that can't be right, surely?

There must be a way to get the requestSoftKeyboard() function to be respected in iOS. Please provide any pointers you can!

G

This topic has been closed for replies.

3 replies

Santanu Karar
Known Participant
October 6, 2012

There was another thread on this with softKeyboard with iOS app, and I'm attaching what Joe..Ward said in one of the post - might helpful to understand you the process and probably a workaround -

"The requestSoftKeyboard() method isn't supported on iOS, except for TextField objects. At the time I wrote the docs you cite, calling requestSoftKeyboard() for a text field was redundant since assigning the stage focus to the text field raised the keyboard on its own and you had to set the focus before calling requestSoftKeyboard(). Now calling requestSoftKeyboard() is required for TextField objects. (And you don't have to set focus beforehand anymore, it is set automatically by the keyboard request call.)

Here's an example that works in AIR 3: http://recycledinformation.blogspot.com/2011/10/custom-text-entry-on-i os.html"

Legend
October 7, 2012

Ooh! Sneaky workaround, but I like it.

Thanks,

G

Legend
October 22, 2012

Hi,

Not sure whether this was updated with newer releases, but I'm not able to use that fix because any TextField that is either off the stage or set to invisible fails to raise the keyboard. Similarly, setting alpha==0 fails with stageText as it is, obviously, not Flash rendered.

So...

Still open on this one!

Any suggestions welcome!

G