Hi, The linked example is not meant to work cross-browser, but it demonstrates the technique of rolling your own simple focus system using script, such that individual elements are capable of receiving keyboard events, and that technique can be applied across different SVG implementations.
Jake On Wed, Sep 14, 2011 at 9:10 PM, dark3251 <[email protected]> wrote: > > > That's very cool but I'm not really interested in something browser > specific. Also, i searched everywhere through that code and found no mention > of the SVG focus events. Every element has the onfocusin event but yet every > description of it in documentation is very vague and I can find no examples. > > > --- In [email protected], Jacob Beard <jbeard4@...> wrote: > > > > You can implement your own focus system. For example, see the following > > example comprising two editable text areas (Firefox only): > > http://live.echo-flow.com/experimental/vi-everywhere/multi-editor.svg > > > > Jake > > > > On Wed, Sep 14, 2011 at 8:06 PM, dark3251 <dark3251@...> wrote: > > > > > > > > > > > Interesting. I could just keep track of the last element clicked or > > > something similar. Certainly not ideal but I can live with that until > > > something better comes along. > > > > > > So what would be the actual function of these focus events if there are > no > > > built in keyboard events? I did a quick test but i couldn't even get > the > > > event to trigger. > > > > > > > > > --- In [email protected], Jacob Beard <jbeard4@> wrote: > > > > > > > > I think your best bet for handling keyboard events interoperably > across > > > SVG > > > > renderers is to register the key* event listener (keyup, keydown, > > > keypress) > > > > on the document root element. Some renderers do things differently - > for > > > > example Batik can receive keypress events on individual elements > based on > > > > the mouse position. > > > > > > > > Jake > > > > > > > > On Wed, Sep 14, 2011 at 2:55 PM, dark3251 <dark3251@> wrote: > > > > > > > > > > > > > > > > > > > Am I right to assume there are no keyboard events associated with > SVG > > > at > > > > > this time? I see nothing in the specifications although the > confusing > > > thing > > > > > to me is that I see events describing "focus" as if there were > keyboard > > > > > events (e.g. onfocusin/out). Am I just misunderstanding the meaning > of > > > focus > > > > > here? > > > > > > > > > > > > > > > > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > > > > > > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > > > [Non-text portions of this message have been removed] ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

