[
https://issues.apache.org/jira/browse/CB-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509879#comment-13509879
]
Joe Bowser commented on CB-1960:
--------------------------------
The reason it's hitting DroidGap's super.onKeyUp is because the BUTTON is a
native component and not a part of the WebView. You can get around this by
using an image and registering an ontouchstart or ontouchstop event on it. In
fact, there's no reason to use a button element in Cordova or in most web apps,
since they're hideously ugly.
We should probably do a test with focus on all the native UI widgets, since we
only really compensate for text fields.
Short term fix: Don't use a button!
> Application exits if back button is pressed after soft keyboard is hidden by
> pressing back button
> -------------------------------------------------------------------------------------------------
>
> Key: CB-1960
> URL: https://issues.apache.org/jira/browse/CB-1960
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 2.2.0
> Environment: Android 2.2.* - 2.3.*
> Reporter: Serhiy Solonko
> Assignee: Joe Bowser
> Priority: Critical
> Labels: android, back-button, cordova, crash
> Attachments: TestFailure.zip
>
>
> https://issues.apache.org/jira/browse/CB-1146
> https://issues.apache.org/jira/browse/CB-1620
> This issues not fixed.
> I've succeeded to reproduce this bug
> Create project with input, button. Press on input -> type anything -> press
> backbutton (close softkeyboard) -> then press button -> and again quickly
> press backbutton -> application will be closed unexpectedly
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira