W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Where should UA insert text when the focus is changed in a keypress event handler?

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Tue, 20 Mar 2012 10:54:11 -0700
Message-ID: <CABNRm62QyZB32bNtPDG+45M+_gV+ngwWtuvBDAYS6oRrk5BWPQ@mail.gmail.com>
To: public-webapps <public-webapps@w3.org>
Cc: Aryeh Gregor <ayg@aryeh.name>

We're trying to figure out inside which element the editing operation must
be done when a keypress event handler changes the focused element /
selection for https://bugs.webkit.org/show_bug.cgi?id=81661.

Should it be done at wherever focus is after keypress event is dispatched?
Or whatever keypress event's target was?

DOM level 3 events doesn't seem to specify this behavior:

According to a fellow WebKit contributor, WebKit and Internet Explorer use
the current focused element whereas Firefox uses the event target.

Ryosuke Niwa
Software Engineer
Google Inc.
Received on Tuesday, 20 March 2012 17:55:03 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:39 UTC