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

Unified Diff: views/controls/button/menu_button.cc

Issue 7315002: Changes menu button to not show the menu on alt-space. alt-space (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/menu_button.cc
diff --git a/views/controls/button/menu_button.cc b/views/controls/button/menu_button.cc
index 89ab71a93561b2fb5ae0bb2802f5a4722bdebcaf..309b4309bb26b99de4924226dee34f0b8a4fb2e6 100644
--- a/views/controls/button/menu_button.cc
+++ b/views/controls/button/menu_button.cc
@@ -221,6 +221,10 @@ void MenuButton::OnMouseExited(const MouseEvent& event) {
bool MenuButton::OnKeyPressed(const KeyEvent& event) {
switch (event.key_code()) {
case ui::VKEY_SPACE:
+ if (event.IsAltDown()) {
+ // alt-space on windows should show the window menu.
Peter Kasting 2011/07/06 17:47:46 Tiny nit: Capitalize! (Also, this would be shorte
+ break;
+ }
case ui::VKEY_RETURN:
case ui::VKEY_UP:
case ui::VKEY_DOWN: {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698