David,

Opera 9 supports keypress. It does not support it as part of SVG, but 
as the browser as a whole.

Have a look at: http://www.carto.net/papers/svg/gui/textbox/index.svg

There are differences in the browsers, however, since keyboard events 
had never been specified by W3C (they will be specified in DOM3, 
though).

One difference in Opera is, that it does not have an evt.charCode 
property, but only evt.keyCode.

Also, don't forget to call evt.preventDefault() after processing the 
keyboard events, or otherwise you'll get all the many browser 
shortcuts defined in Opera9.

And then there is Adobe, which is different again: it does not 
support all characters on "keypress", but some on "keydown"

See http://www.carto.net/papers/svg/gui/textbox/textbox.js (method
 .handleEvent()) to see how I tried to support all browsers/viewers.

Good luck,
Andreas


--- In [email protected], "benamou" <jean-
[EMAIL PROTECTED]> wrote:
>
> really fine !
> 
> onkeypress does not seem to work
> where is the list of supported features ?
> 
> 

>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
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/

<*> 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/
 


Reply via email to