5

[Win] focus event is not dispatched for form controls when they are focused via...

 3 years ago
source link: https://bugs.webkit.org/show_bug.cgi?id=221036
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
221036 – [Win] focus event is not dispatched for form controls when they are focused via mouse click

WebKit Bugzilla

Bug 221036: [Win] focus event is not dispatched for form controls when they are focused via mouse click

Bug 221036 - [Win] focus event is not dispatched for form controls when they are focused via mouse click

Reported: 2021-01-27 05:44 PST by Manuel Rego Casasnovas

Modified: 2021-01-27 05:44 PST (History) CC List: 4 users (show)

See Also:


Attachments Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this bug.

Description

Manuel Rego Casasnovas

2021-01-27 05:44:27 PST

If you click a <button>, the "focus" event is not dispatched on Windows.

Actually this doesn't happen on Mac either, but that's because Mac follows the platform conventions (see https://bugs.webkit.org/show_bug.cgi?id=220243 for more details).

I have the feeling that Windows could dispatch the event like GTK+ and recently WPE (see r271671) are doing.

A patch to enable this on Windows would be very simple, similar to the one for WPE port. Some :focus-visible tests would stop to timeout once that's changed.

Anyway this is just for your information, in case you want to change that or not.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK