Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(802)

Unified Diff: views/controls/menu/menu_controller.cc

Issue 291006: Control Click to all bookmarks in folder in background tabs. This currently w... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/button/menu_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_controller.cc
===================================================================
--- views/controls/menu/menu_controller.cc (revision 29082)
+++ views/controls/menu/menu_controller.cc (working copy)
@@ -441,7 +441,11 @@
return;
}
- if (!part.is_scroll() && part.menu && !part.menu->HasSubmenu()) {
+ // We can use Ctrl+click or the middle mouse button to recursively open urls
+ // for selected folder menu items. If it's only a left click, show the
+ // contents of the folder.
+ if (!part.is_scroll() && part.menu && !(part.menu->HasSubmenu() &&
+ (event.GetFlags() == MouseEvent::EF_LEFT_BUTTON_DOWN))) {
if (part.menu->GetDelegate()->IsTriggerableEvent(event)) {
Accept(part.menu, event.GetFlags());
return;
« no previous file with comments | « views/controls/button/menu_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698