Hi,

I faced the problem same as this topic.

Additionally, even specify the input element, when the cursor is on
edge,
the focus goes to page scroll or url bar.

I wonder if there are any documents describe focus behavior of
Android browser.

Thanks.


On Apr 21, 9:58 pm, Selva <[email protected]> wrote:
> Hi,
> I am using Android 1.1 SDK release 1 on linux. I am facing the
> following problem.
>
> Javascriptdocument level event listeners do not work in webkit
> browser.  On a web page withjavascriptevent 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 abovejavascriptsnippet,  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