[Bug 22842] Should keyboard events fire during a composition session?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22842

--- Comment #2 from Masayuki Nakano <masayuki@d-toybox.com> ---
First of all, keypress event shouldn't be fired.

The point is, about keydown and keyup.

Most browsers, except Gecko, fire keydown and keyup events even during
composition. So, for compatibility, it *might* be better the events fired even
during composition. I have no idea for the usage.

Additionally, keydown.preventDefault() during composition *may* not be able to
suppress the key event handled by IME because on some platform, key event may
be passed to IME first.

On the other hand, if web developers are not familiar with IME, it's possible
to create web applications which is IME unaware. For example, IME composition
might be committed forcibly by keydown or keyup event handlers. But I don't
worry this for now. I believe that most web developers know IME since mobile
phone uses IME with any languages. And there are input event and mutation event
which are also fired even during composition. So, they have same issue. It
might not make sense to worry about only keydown and keyup events.

However, Gecko needs a lot of work internally before dispatching them during
composition because our internal key event handlers don't check composition
state. So, there must be problems if Gecko dispatch them during composition.

Anyway, I think that the spec should define it clearly.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 1 August 2013 05:56:11 UTC