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: { |