Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

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

Community Beginner ,
Jun 21, 2012 Jun 21, 2012

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?

TOPICS
Development
978
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 21, 2012 Jun 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 26, 2012 Jun 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 05, 2013 Mar 05, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines