[
https://issues.apache.org/jira/browse/FLEX-34402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brady Kelley updated FLEX-34402:
--------------------------------
Attachment: TextAreaTest.fxp
Added FB project to easily replicate the bug
> Hardware back button closes app when stage text has focus
> ---------------------------------------------------------
>
> Key: FLEX-34402
> URL: https://issues.apache.org/jira/browse/FLEX-34402
> Project: Apache Flex
> Issue Type: Bug
> Affects Versions: Apache Flex 4.12.1
> Environment: Android
> Reporter: Brady Kelley
> Attachments: TextAreaTest.fxp
>
>
> Application is closed (moved to background) when user presses the back button
> while stage text field has focus. This happens regardless of how many views
> are currently on the view stack. This currently affects android only as it
> is specific to using the back hardware button.
> To replicate on Android (note: this does not work on the simulator):
> 1. go to a view that contains a text field (using stage text).
> 2. tap on the text field as if you were going to input text.
> 3. press the hardware back button -> the keyboard should collapse, however
> the stage text component still maintains focus.
> 4. press the hardware back button again.
> Notice how the app immediately closes (pushed to the background). Also note
> that there may be a stack trace that is thrown from the stage text input, due
> to the premature closing of the app. The stack trace is not the issue, it is
> the closing of the app that causes the stack trace (putting a stage.focus =
> null in the back key pressed handler will prevent the stack).
--
This message was sent by Atlassian JIRA
(v6.2#6252)