[webkit-dev] Handling IME composition events
ojan at chromium.org
Thu Jul 29 14:43:52 PDT 2010
On Thu, Jul 29, 2010 at 9:18 AM, Joone Hur <joone at kldp.org> wrote:
> On Thu, Jul 29, 2010 at 3:13 AM, Oliver Hunt <oliver at apple.com> wrote:
> > On Jul 28, 2010, at 8:45 AM, Joone Hur wrote:
> >> 3) Keyboard events should not be dispatched during a composition.
> > Key events must be sent while an IME is active otherwise sites break.
> IIRC you get keydown and keyup events, but not keypress. The keydown event
> when an IME is active has charCode 229 in order to be compatible with IE.
> However, I think
> that composition events seem enough without keyboard events during a
> IME composition.
If were were designing these APIs from scratch, that might be the case. But
WebKit only recently added composition events. We have been firing key
events for a long time. If we stopped firing them, a lot of sites would
break in WebKit browsers. So, not firing them is not an option.
> We need a consensus on this issue between WebKit and Mozilla developers.
I don't think we could reasonably stop firing key events. Too many sites
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev