[Webkit-unassigned] [Bug 22261] Clicking on a non-text input element does not give it focus

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 25 05:07:24 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=22261

--- Comment #70 from Gérard Talbot <browserbugs2 at gtalbot.org> ---
(In reply to Darin Adler from comment #68)

> Mac users expect the focus to remain in the text field if you click on a
> button. That’s what happens everywhere else on their computer in all the Mac
> applications. It’s a benefit that buttons work as expected, consistent with
> other buttons on the Mac, and don't pull the focus away from the text field
> you are already typing in.

Thank you for explaining this. I had no idea about this.

What about button-type input or HTML buttons which are not related to a textfield?

Epiphany 3.32.1.2 (which uses WebKitGTK+ 2.30.6) under Linux focuses button-type input:
http://www.gtalbot.org/DHTMLSection/AdvancedCSSButtons.html

What about radio buttons and check boxes?

from #c7:
> 1. Radio buttons and check boxes are not focusable by mouse
> 2. Radio buttons and check boxes also not focusable through tabbed browsing.

from #c24
> generally speaking, clicking on a button on Mac OS X does not focus that button.

"
The focus event occurs when an element receives focus either via a pointing device or by tabbing navigation. This event is valid for the following elements: LABEL, INPUT, SELECT, TEXTAREA, and BUTTON.
" 
coming from
https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-htmlevents

I have tried to see if this is still true in latest www.w3.org/TR/uievents/ and my attempt was inconclusive.

Disclaimer: Unfortunately, I do not use MacOS; so, I do not use Safari. I do not have access to a Mac or Safari (like in an Internet Cafe or have a friend living nearby who uses a Mac). I do not want anyone to presume that I imply or infer bad faith or bad intent or lack of empathy toward Safari developers or MacOS engineers. I do not want people to think that my questions are trying to annoy or contradict MacOS or Safari developers.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210525/a9f6c5ba/attachment.htm>


More information about the webkit-unassigned mailing list