[webkit-help] make non focusable node focusable
Alexander Shulgin
alexander.shulgin at yessoftware.com
Wed Oct 6 05:00:32 PDT 2010
On 06.10.2010 6:21, Anurag Dak wrote:
> Thanks for the prompt reply
>
> Actually i want to set focus to the elements node which are registered
> with the event like "onMouseup" and not focusable .
>
> Ex:
> <div onClick = "call()">Call the Function </div>
>
> i want to make this div keyboard focusable. If it is possible through
> some API in webkit. please suggest me.
> But in webkit core, not in HTMLJS using tabindex. that means i dont want
> to modify the page source, i just need to change the interpretation in
> webkit.
Keyboard focus is for entering text. You cannot enter text into plain
<div>, so that's really unlikely to be possible.
Why do you need this? Can't you use contentEditable="true" for the div?
--
Alex
More information about the webkit-help
mailing list