Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1620

Application exits if back button is pressed after soft keyboard is hidden by pressing back button

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None
    • Environment:

      PhoneGap 2.1 on Android < 4.1
      (Tested on Android 4.0.3 & Android 2.3.3)
      Not an issue for Android 4.1

      Description

      This was previously issue #1146 however it is still broken for me.

      Steps to reproduce on Android < 4.1:
      1) Focus on an input or text field to bring up soft keyboard.
      2) Press the back button to hide the soft keyboard.
      3) Press the back button again.

      Expected behavior: "backbutton" event is fired.
      Actual behavior: App exists.

      Note that if the keyboard is hidden by other means (e.g. after submitting a form) and the back button is subsequently pressed we get the expected behavior.

      I am currently building using SDK version 16.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bowserj Joe Bowser
                Reporter:
                mwindwer Matthew Windwer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: