W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] focus change inside keypress event handler

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Fri, 30 Oct 2009 11:03:43 +0200
Message-ID: <4AEAABEF.50405@helsinki.fi>
On 10/30/09 7:26 AM, Boris Zbarsky wrote:
> On 10/29/09 10:16 PM, Maciej Stachowiak wrote:
>> WebKit also makes typing take effect as the default action for
>> "keypress", at least for normal typing. It's more complicated when
>> international text input methods are in play.
> Yeah, when IME is involved I have no idea what events are fired in Gecko
> and when.

When IME is involved Gecko dispatches keydown, keypress,
compositionstart, text+, compositionend, keyup.

D3E has compositionstart, compositionupdate (which is a lot better name 
than 'text') and compositionend.

In Gecko IME doesn't really make key event handling more complicated, 
though the default handling is a bit different with keypress.
(I should re-test default handling with IME.)

Received on Friday, 30 October 2009 02:03:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC