Another option for making an element focusable is to use the tabindex 
attribute.
   -Yael
   -----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of ext Alexander Shulgin
Sent: Wednesday, October 06, 2010 8:01 AM
To: [email protected]
Subject: Re: [webkit-help] make non focusable node focusable
   
   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
   _______________________________________________
   webkit-help mailing list
   [email protected]
   http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to