[
https://issues.apache.org/jira/browse/CB-1965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510648#comment-13510648
]
Joe Bowser commented on CB-1965:
--------------------------------
Can you provide an example of your app? Also, can you tell me whether you are
using a button, textfield or radio button and whether it is highlighted? We
need these to test to see whether this issue has already been fixed or if this
is a new issue.
> backHistory() closes the application after an ajax request with the soft
> keyboard
> ---------------------------------------------------------------------------------
>
> Key: CB-1965
> URL: https://issues.apache.org/jira/browse/CB-1965
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 2.1.0, 2.2.0
> Environment: On android 2.3.4, seen on Sony Xperia Ray and ArcS
> Reporter: Ali Bugdayci
> Assignee: Joe Bowser
> Priority: Critical
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Checked the bug list first, might be similar but not the same as the
> following bug: https://issues.apache.org/jira/browse/CB-1146
> 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 (href.search("ui-state=dialog")==(-1)){
> showLoading();
> }
> //window.history.back();
> navigator.app.backHistory();
> }
> 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'.
> hw.keyboards.196610.devname='clearpad'
> 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 192.168.43.8 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: http://www.atlassian.com/software/jira