[whatwg] focus change inside keypress event handler
Olli.Pettay at helsinki.fi
Fri Oct 30 02:03:43 PDT 2009
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.)
More information about the whatwg