Skip to main content
Known Participant
June 21, 2012
Question

StageTextInputSkin press android ICS back button while in textinput without softkeyboard closes app

  • June 21, 2012
  • 2 replies
  • 1003 views

Try this on an android 4.0 device.

Put a StageTextInputSkin TextInput (same issue with stagetextarea).

Click it to activate the softkeyboard. Click the back button which will minimize the softkeyboard. Click the back button again and it will close the app.

does anyone know how to prevent the app from closing?

This topic has been closed for replies.

2 replies

Participant
March 5, 2013

Hy,

I posted a working solution that I can successfully adopted to close the SoftKeyboard without closing the app when you press the back button on android also if there are multiple view button returns to the previous view link to the post:


http://forums.adobe.com/thread/940106

Franco

Chris W. Griffith
Community Expert
Community Expert
June 21, 2012

Do you have a listener in place to capture the Back key? If you don't then this behaviour is exactly correct.

Chris

Known Participant
June 26, 2012

Oh sorry I forgot to give abit more detail.

first off push a few views onto the viewnavigator. so the default action would be to pop a view. but it just closes the app as if the home button was pressed.

the stagetextinputskin first does what the default android textinput action is when the back button is pressed. so you can't do the preventDefault stopImmediatePropagation to prevent these actions.