Skip to main content
Known Participant
Aug 3, 2011 11:56 PM UTC
Answered

Communicate with the soft keyboard on iPad

Hi guys, I'm using Air 2.7 CPU mode... I've got some code that calls a contact form within a movieclip to the stage on my iPad app... works really nicely and I've also got a button on screen that then removes the contact form from the stage.

Unforunately if you're in the middle of typing in a field and press the close form button, the ipad soft keyboard stays on screen and so does the text that's been typed.

I'm wondering if I can communicate with the ipad keyboard to make it go down. I'm hoping I can somehow communicate via actionscript with the small button in the right hand corner of the ipad keyboard which makes the keyboard leave the screen.

Thanks, Mike

This topic is closed to new replies. Start a new post to keep the conversation going.
Pahup
PahupCorrect answer
Adobe Employee
Aug 4, 2011 4:17 AM UTC

please try stage.focus = null

-Pahup

5 replies

Pahup
Adobe Employee
PahupCorrect answer
Adobe Employee
Aug 4, 2011 4:17 AM UTC

please try stage.focus = null

-Pahup

Translate
Known Participant
Aug 4, 2011 8:15 AM UTC

Pahup, problem solved... I can't thank you enough

Translate
Known Participant
Aug 4, 2011 10:56 AM UTC

Does anyone know if you can target the second keyboard screenon the ipad?

For instance, I was playing around with a Maths learning game, where the user would input numbers only into

an input box.

When they click on the input field it would be great if it went straight to the keyboard numbers tab, to make it seamless.

Thanks,

Matt

Translate