[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
Tue Jan 11 15:37:55 PST 2011


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





--- Comment #6 from Ojan Vafai <ojan at chromium.org>  2011-01-11 15:37:54 PST ---
(In reply to comment #3)
> Keep in mind that you might have a multiple button mouse and to send a click on the left button with the control key held down through as a click on the right button is a lie, and will make distinct events (control click on left button vs. control click on right button) look identical to the web page.

I hadn't thought about that case. Does that case actually matter? Safari and Chrome pull up the context menu for both of those? Is there a use-case for developers to treat those differently?

> I’m not sure it’s urgent to change WebKit and Safari to tell this lie, just because ported Windows browsers are doing so.

Matching Windows expected behavior is not the motivation. Compatibility with other browsers is. It's more that web developers wanting to capture right-click need to write extra code for WebKit.

(In reply to comment #4)
> This bug doesn’t mention any actual website compatibility problems. Are there some?

In Google's Closure library the right-click handling code doesn't handle this case (causing the gmail bug). Closure can certainly just be fixed. In fact, this bug was filed as a result of a codereview attempting to fix it. But it seems likely that other sites that try to handle right-click will hit this issue. 

Darin, if you still disagree, we can close the bug and fix Closure instead. We should probably also file a Mozilla bug to try to get them to change to match WebKit in that case.

-- 
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