Skip to main content
Known Participant
August 3, 2011
Answered

Communicate with the soft keyboard on iPad

  • August 3, 2011
  • 1 reply
  • 1115 views

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 has been closed for replies.
Correct answer Pahup

please try stage.focus = null

-Pahup

1 reply

Pahup
Adobe Employee
PahupCorrect answer
Adobe Employee
August 4, 2011

please try stage.focus = null

-Pahup

Known Participant
August 4, 2011

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

Known Participant
August 4, 2011

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