W3C home > Mailing lists > Public > public-webapi@w3.org > August 2007

Re: DOM3 Key events

From: Oliver Hunt <oliver@apple.com>
Date: Wed, 1 Aug 2007 15:48:55 -0700
Cc: public-webapi@w3.org
Message-Id: <90E1EBC8-B6D0-4A9C-8811-384E54FCB13B@apple.com>
To: Boris Zbarsky <bzbarsky@mit.edu>

Really?  By my testing it matches Firefox 2 behaviour on both mac and  
windows.

IE behaviour results in the keypress not being fired.

Oh, sorry, i didn't clarify (because that was just a note to be taken  
in the context of the earlier event handler definition) the textInput  
event is distinct from keypress, the sequence of events is (in vageuly  
regex-like syntax):
(keydown -> (keypress -> textInput?)?)+ -> keyup

--Oliver

On Aug 1, 2007, at 3:34 PM, Boris Zbarsky wrote:

>
> Oliver Hunt wrote:
>> * preventDefault on KeyDown will *not* prevent KeyPress events from  
>> being fired (this matches Firefox behaviour, and is needed for a  
>> couple of sites)
>
> Actually, that doesn't match current Firefox behavior.  But Firefox  
> behavior changed between Firefox Firefox 1 and 1.5 on non-Mac  
> platforms [1] and between Firefox 1.5 and Firefox 2 on Mac [2] to  
> better match IE/Windows.
>
> -Boris
>
> [1] https://bugzilla.mozilla.org/show_bug.cgi?id=167145
> [2] https://bugzilla.mozilla.org/show_bug.cgi?id=337199
>
Received on Wednesday, 1 August 2007 22:49:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:58 GMT