Skip to main content
July 10, 2013
Question

iOS Text input no longer opening keyboard

  • July 10, 2013
  • 1 reply
  • 487 views

Hi All.

So recently we just switched away from using MouseEvents to TouchEvents when we target iOS due to performance (found out about that from this thread http://forums.adobe.com/message/5346703#5346703). But this lead to a bug with TextFields that are set to TextFieldType.INPUT.

I narrowed it down to Multitouch.mapTouchToMouse = false. Setting this to false will no longer allow you to touch/tap on a text field and bring up the iOS keyboard. I also set the text field's "needsSoftKeyboard" to true but that did not fix the issue (it was suggested in a few other threads). Once I set Multitouch.mapTouchToMouse to true, everything works fine again.

Has anyone else experienced this issue or knows how to fix it? Is this a bug?

I do have a work around right now, but not ideal. I add an event listener on my text field for TOUCH_TAP. In the callback, set the stage.focus = textField and then textField.requestSoftKeyboard(). Then I add an almost invisible overlay to the stage to act as a click shield so that anytime the screen is tapped, I set stage.focus = null and remove that overlay click shield. Again, its not ideal but is a work around for it.

Thanks

This topic has been closed for replies.

1 reply

Adobe Employee
July 11, 2013

Hello,

Could you please open a new bug report on this over at bugbase.adobe.com? Please include sample media. Once the bug has been added would you mind posting back with the URL so that others affected can add their votes and comments?

Thanks,

Nimit