incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Corey (JIRA)" <>
Subject [jira] [Created] (CB-1181) onkeyup not firing in javascript on Jellybean
Date Thu, 02 Aug 2012 18:16:04 GMT
Ken Corey created CB-1181:

             Summary: onkeyup not firing in javascript on Jellybean
                 Key: CB-1181
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, CordovaJS
    Affects Versions: 2.0.0
         Environment: Android 4.1.1 (Nexus 7), versus 4.0.4 (Samsung Galaxy Tab 2 10")
            Reporter: Ken Corey
            Assignee: Joe Bowser

I've got a dynamic search entry something like this in my index.html:
function dosearch(txt) {
  // blah
  console.log("IAmSearching is true.");
  // lots of stuff
  console.log("IAmSearching is false.");

<input id="junk" onkeyup="dosearch(this.value);">

On a Nexus 7 (Jelly Bean 4.1.1), dosearch is only being called when I press <return>
with the input active.

Now, on 4.0.4 (Samsung Galaxy Tab 2 10), dosearch is being called for every keystroke, as

Note that in the logcats, on Samsung, the webview itself seems to be handling the onkeyup
without cordova getting a look in. On the Nexus, it's the opposite.

Here's a comparison of the relevant bit of the logcats: 

Can anyone tell me why Cordova 2.0 has a problem with keyup events on 4.1.1?

Feel free to contact me ( if you need confirmation or better logging.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message