cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ali Bugdayci (JIRA)" <>
Subject [jira] [Created] (CB-1965) backHistory() closes the application after an ajax request with the soft keyboard
Date Wed, 05 Dec 2012 12:56:58 GMT
Ali Bugdayci created CB-1965:

             Summary: backHistory() closes the application after an ajax request with the
soft keyboard
                 Key: CB-1965
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.2.0, 2.1.0
         Environment: On android 2.3.4, seen on Sony Xperia Ray and ArcS
            Reporter: Ali Bugdayci
            Assignee: Joe Bowser
            Priority: Critical

Checked the bug list first, might be similar but not the same as the following bug:

1) Sending an ajax request with typing on soft keyboard, 
2) after the request ends, pressing the back button closes the application. 

If I lock the screen before pressing the back button it works fine. 
If I trigger another local javascript on the page, and the press back button it works fine.

Hence I believe this has nothing to do with request being an ajax one. LogCat gives keycharmap
file warnings, but not getting any exceptions, so it might have something to do with the history?

my event listener:

function onBackKeyDown(event) {
    var href = window.location.href;
    if ("ui-state=dialog")==(-1)){

My log cat:

12-05 14:41:41.636: W/KeyCharacterMap(4412): Can't open keycharmap file
12-05 14:41:41.636: W/KeyCharacterMap(4412): Error loading keycharmap file '/system/usr/keychars/clearpad.kcm.bin'.
12-05 14:41:41.636: W/KeyCharacterMap(4412): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
12-05 14:41:41.766: D/DroidGap(4412): Paused the application!
12-05 14:41:41.766: D/CordovaWebView(4412): Handle the pause
12-05 14:41:41.836: D/SoftKeyboardDetect(4412): Ignore this event

 Sample request:
Started PUT "/yorumlar/41" for at 2012-12-05 14:34:38 +0200
Processing by YorumlarController#update as JS
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"DdT4Wm3NxnCbUkoODfCXKBu2Bs0rmiKN/iBXrGGcFCU=",
"yorum"=>{"id"=>"41", "icerik"=>"Gmdwtjjm"}, "commit"=>"Güncelle", "id"=>"41"}

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:

View raw message