Bug 10124
Summary: | ER: Add support for simulation of middle or right button clicks for single button mouses | ||
---|---|---|---|
Product: | WebKit | Reporter: | Matthew McGillis <matthew> |
Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Enhancement | CC: | jcraig, webkit |
Priority: | P4 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
URL: | http://unixpapa.com/js/mouse.html |
Matthew McGillis
Web pages/Javascript can be driven based on middle or right mouse button clicks. However mac users with a single mouse button have no way to activate these other options when sites require them. They also have no way to activate these options with safari even if they have a mouse that has all the buttons.
Would be nice to support 3 button mouses and provide a way to simulate a right click or middle click on a single button mouse.
I believe the somewhat comman implementation is to map:
control-click = right click
alt-click = middle/other click
Although the above approach does have some problems with apples existing usage of control-click.
This problem can be reproduced using the following steps:
Steps to Reproduce:
1.Got to url provided
2.Click on the text in the box and the event information will apear in the log
3.Try clicking using control, option, command, shift or any modifier you like
4. Try using a 3 button mose and click on the box using any of the buttons.
Actual Results:
the log never changes from a left mouse button click
Expected Results:
It would be nice if apple users had some way of clicking to produce a middle or
right click result. Both with a 3 button mouse or single button mouse.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Robert Blaut
There is something wrong with the test page. I'm unable to get any result in log window in all of tested browsers: Minefield, Opera and Webkit.
Matthew McGillis
See this page for more details about differences between browser mouse events.
http://unixpapa.com/js/mouse.html
Try this test page to see events generated.
http://unixpapa.com/js/testmouse.html
Robert Blaut
I see the problem now, but I classify the issue as an enhancement request.
James Craig
Not an AX bug. Reassigning.