RESOLVED FIXED 30619
[Linux] Menu key doesn't work
https://bugs.webkit.org/show_bug.cgi?id=30619
Summary [Linux] Menu key doesn't work
Kinuko Yasuda
Reported Wednesday, October 21, 2009 8:24:29 AM UTC
The menu key (this one: http://en.wikipedia.org/wiki/Menu_key) doesn't work in Linux. Shift+F10 also doesn't. Both should emulate right click. * If focus is in a text field, it should be the same as right clicking where the text cursor is (this currently DOES work in the omnibox, but not other text fields) * If focus is on another element (like a link) it should bring up the context menu for that next to it. * If text is selected, Firefox brings up the context menu for that text in the upper right hand corner of the page, but I think it would be better for it to appear next to the selected text. But that might be hard. * If focus is not on anything else, it should bring up the page's context menu in the upper left hand corner of the page Original chromium bug tracker: http://code.google.com/p/chromium/issues/detail?id=18232 bug #28247 also partly refers this bug.
Attachments
Fix for bug 30619: Menu key doesn't work on Linux (1.29 KB, patch)
2009-10-21 02:11 PDT, Kinuko Yasuda
no flags
Added manual test for Menu key event. (1.45 KB, patch)
2009-10-22 03:39 PDT, Kinuko Yasuda
no flags
Hi, I added a manual test and also updated platform/gtk/KeyEventGtk.cpp. In this patch I haven't extended eventSender.keyDown() for now. (4.19 KB, patch)
2009-10-22 05:07 PDT, Kinuko Yasuda
no flags
Fix for bug 30619: Menu key doesn't work on Linux (4.22 KB, patch)
2009-10-25 22:38 PDT, Kinuko Yasuda
no flags
Kinuko Yasuda
Comment 1 Wednesday, October 21, 2009 10:11:24 AM UTC
Created attachment 41557 [details] Fix for bug 30619: Menu key doesn't work on Linux
Evan Martin
Comment 2 Wednesday, October 21, 2009 3:54:38 PM UTC
The change looks good to me, but I'm not a WebKit reviewer so I can't give you an official review. It would be nice if we could have tests for this.
Tony Chang
Comment 3 Wednesday, October 21, 2009 6:01:22 PM UTC
You might be able to add a layout test for this by extending eventSender.keyDown() to know about the menu key. Note that this still wouldn't show up in a pixel test result because context menus are a different window, so perhaps it's not worth the effort.
Eric Seidel (no email)
Comment 4 Wednesday, October 21, 2009 6:31:47 PM UTC
Comment on attachment 41557 [details] Fix for bug 30619: Menu key doesn't work on Linux We could definitely have a manual-test for this. WebCore/manual-tests/ Otherwise this looks fine.
Jan Alonzo
Comment 5 Thursday, October 22, 2009 10:49:59 AM UTC
(In reply to comment #1) > Created an attachment (id=41557) [details] > Fix for bug 30619: Menu key doesn't work on Linux Would be nice if we can update WebCore/platform/gtk/KeyEventGtk.cpp as well.
Kinuko Yasuda
Comment 6 Thursday, October 22, 2009 11:39:36 AM UTC
Created attachment 41651 [details] Added manual test for Menu key event.
Kinuko Yasuda
Comment 7 Thursday, October 22, 2009 1:07:49 PM UTC
Created attachment 41655 [details] Hi, I added a manual test and also updated platform/gtk/KeyEventGtk.cpp. In this patch I haven't extended eventSender.keyDown() for now.
Jan Alonzo
Comment 8 Saturday, October 24, 2009 11:45:20 AM UTC
Comment on attachment 41655 [details] Hi, I added a manual test and also updated platform/gtk/KeyEventGtk.cpp. In this patch I haven't extended eventSender.keyDown() for now. > + No new tests: testing this will require changes in the test > + controller in a platform-specific way. (Mac doesn't have Menu key) Would be nice to mention that there's a manual test for this. Regardles, LGTM. r=me.
Kinuko Yasuda
Comment 9 Monday, October 26, 2009 6:37:30 AM UTC
(In reply to comment #8) > (From update of attachment 41655 [details]) > > + No new tests: testing this will require changes in the test > > + controller in a platform-specific way. (Mac doesn't have Menu key) > > Would be nice to mention that there's a manual test for this. > > Regardles, LGTM. r=me. Thanks for reviewing! I'm updating the ChangeLog in the following patch. Could you review it one more time? (Hope it'll be the last one.) Thanks,
Kinuko Yasuda
Comment 10 Monday, October 26, 2009 6:38:39 AM UTC
Created attachment 41844 [details] Fix for bug 30619: Menu key doesn't work on Linux
WebKit Commit Bot
Comment 11 Monday, October 26, 2009 11:29:29 AM UTC
Comment on attachment 41844 [details] Fix for bug 30619: Menu key doesn't work on Linux Clearing flags on attachment: 41844 Committed r50051: <http://trac.webkit.org/changeset/50051>
WebKit Commit Bot
Comment 12 Monday, October 26, 2009 11:29:33 AM UTC
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.