[Webkit-unassigned] [Bug 52174] Control-click on Mac should trigger a mouse event with event.button == 2

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 21 16:25:05 PDT 2022


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

Ahmad Saleem <zlip.792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlip.792 at gmail.com

--- Comment #8 from Ahmad Saleem <zlip.792 at gmail.com> ---
I am not wrong and not doing it incorrectly, I get same behavior across all browsers using test case from Description / Comment 0. I performed following on Safari 15.6, Chrome Canary 105 and Firefox 104 using macOS 12.5:

1) Webkit Link
2) Open Console and typed:
document.body.addEventListener('mousedown', function(e) { alert(e.button); }, false);
3) Pressed Control and then left click on trackpad (verified left clicking by MDN following test:

https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button

All browsers reported '0' and then opened Context Menu of page.

Is it expected behavior or there is something else needed. Just wanted to share what I was able to perform and share the results. Please ignore, if my testing is incorrect or results are incorrect. Thanks!

-- 
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/20220721/f74d4175/attachment.htm>


More information about the webkit-unassigned mailing list