[Webkit-unassigned] [Bug 52174] New: Control-click on Mac should trigger a mouse event with event.button == 2
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 10 15:52:17 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=52174
Summary: Control-click on Mac should trigger a mouse event with
event.button == 2
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: nicksantos at google.com
CC: ojan at chromium.org, arv at chromium.org
Description: On Mac, control-click brings up a contextmenu, but webkit fires a mouse event with button == 0.
Repro steps:
1) Execute the following JS on any page.
document.body.addEventListener('mousedown', function(e) { alert(e.button); }, false);
2) Ctrl-click on the page.
Expected behavior:
alert(2);
like on Gecko, or when doing 2-finger clicks on certain Mac touchpads
Actual behavior:
alert(0);
For what it's worth, here's the relevant spec:
http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#event-type-click
which is ambiguous, but seems to slightly tilt in favor of the gecko behavior.
Also, because two-finger click on touchpads have event.button == 2, it seems like the ctrl-click behavior should be consistent.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list