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

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

Issue 10446010: wip: Add ui::EventType parameter. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wip - views_unittests Created 8 years, 7 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 | « ui/views/controls/button/text_button.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller.cc
diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
index a09333c629d8c19db26952ab1b1ad8ea65c416d7..a105819536cd238344b23937edc788da847ec52a 100644
--- a/ui/views/controls/menu/menu_controller.cc
+++ b/ui/views/controls/menu/menu_controller.cc
@@ -1061,7 +1061,7 @@ MenuController::SendAcceleratorResultType
if (!hot_view)
return ACCELERATOR_NOT_PROCESSED;
- ui::Accelerator accelerator(ui::VKEY_RETURN, ui::EF_NONE);
+ ui::Accelerator accelerator(ui::VKEY_RETURN, ui::EF_NONE, ui::ET_KEY_PRESSED);
hot_view->AcceleratorPressed(accelerator);
if (hot_view->GetClassName() == CustomButton::kViewClassName) {
CustomButton* button = static_cast<CustomButton*>(hot_view);
« no previous file with comments | « ui/views/controls/button/text_button.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698