--- In [email protected], Bjoern Hoehrmann <[EMAIL PROTECTED]> 
wrote:
>
> * Andreas Neumann wrote:
> >The newest widget is a textbox. Coding this object was a major
> >pain since browsers don't support keyboard events consistently.
> 
> I'd be most interested in hearing more about the problems you had, could
> you post your findings to the [EMAIL PROTECTED] mailing list so the
> Working Group can consider them in the context of the DOM Level 3 Events
> specification?

I don't know if these are new problems, they are probably well-known. Here is a 
short list:

* collissions with shortcuts (e.g. backspace key, goes back in the history). 
yes, there is 
evt.preventDefault(), but it doesn't always work. see example with Opera9 at 
http://
www.carto.net/neumann/operasvgbugs/ambiguous_keyboard_events.svg (try the 
backspace key)

* some UAs support evt.charCode, some support evt.keyCode, some both

* some UAs react on "keydown" others on "keypress", others on both

* some UAs repeatedly report events if the key is pressed for a longer time, 
some don't

* some UAs don't report that certain meta keys are pressed. e.g. Mozilla 
doesn't report if 
the shift key is pressed. It only reports it in combination with other keys.

* in Opera 9 some key events are ambiguous, because it only supports 
evt.keyCode and 
not evt.charCode. see also example http://www.carto.net/neumann/operasvgbugs/
ambiguous_keyboard_events.svg with Opera9. In other browsers I can distinguish 
the 
ambiguous characters because they are either reported as evt.keyCode or as 
evt.charCode

* some UAs report evt.timeStamp, some don't.

I think with a little research the list of inconistencies between UAs regarding 
key event 
handling can be made longer.

I am not subscribed in the public-webapi mailinglist, but please feel free to 
forward my 
message.

Andreas







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