diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-08 03:36:56 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-08 03:36:56 +0000 |
commit | 7c54244badec8ba7c5186c73492308e2c2d086d9 (patch) | |
tree | 915ef6a6663762cd422c6f3e5e49f0a2eb8c0f40 /views | |
parent | ebc94fbb0acddd4cca31538267df94d753e6f7c3 (diff) | |
download | chromium_src-7c54244badec8ba7c5186c73492308e2c2d086d9.zip chromium_src-7c54244badec8ba7c5186c73492308e2c2d086d9.tar.gz chromium_src-7c54244badec8ba7c5186c73492308e2c2d086d9.tar.bz2 |
Makes views menu open submenus immediately when pressing a key. We
need to do this immediately, otherwise if the user types fast enough
the accelerator goes to the wrong menu.
BUG=84442
TEST=see bug
R=ben@chromium.org
Review URL: http://codereview.chromium.org/7328004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91806 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/menu/menu_controller.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/controls/menu/menu_controller.cc b/views/controls/menu/menu_controller.cc index 84544f1..31726f1 100644 --- a/views/controls/menu/menu_controller.cc +++ b/views/controls/menu/menu_controller.cc @@ -1682,7 +1682,7 @@ bool MenuController::AcceptOrSelect(MenuItemView* parent, // There's only one match, activate it (or open if it has a submenu). if (submenu->GetMenuItemAt(details.first_match)->HasSubmenu()) { SetSelection(submenu->GetMenuItemAt(details.first_match), - SELECTION_OPEN_SUBMENU); + SELECTION_OPEN_SUBMENU | SELECTION_UPDATE_IMMEDIATELY); } else { Accept(submenu->GetMenuItemAt(details.first_match), 0); return true; |