Hi,
I am using Android 1.1 SDK release 1 on linux. I am facing the
following problem.

Javascript document level event listeners do not work in webkit
browser.  On a web page with
javascript event listener for keydown event, the event listener is not
invoked on any key press. Instead any key press on the web page moves
the focus to URL entry field.

Event handling does not work in both of the below registration methods
inside the Android's webkit.


document.addEventListener("keydown", keydownhandler, false); or
window.addEventListener("keydown", keydownhandler, false);

function keydownhandler(e)
{
  alert("Inside keypresshandler(e)");
}


The web page with the above javascript snippet,  shows the alert
message properly in firefox and IE browsers whenever any key is
pressed. But in android's web browser,  the control never goes to the
'keydownhandler'. Rather the focus goes to the URL entry bar.

How to get this working in the Android browser?. Your  suggestion is
really appreciated.

Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to