diff options
Diffstat (limited to 'chrome/views/menu_button.cc')
-rw-r--r-- | chrome/views/menu_button.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/views/menu_button.cc b/chrome/views/menu_button.cc index 8916fcf..91f6d55 100644 --- a/chrome/views/menu_button.cc +++ b/chrome/views/menu_button.cc @@ -207,7 +207,7 @@ void MenuButton::OnMouseReleased(const ChromeViews::MouseEvent& e, // When the space bar or the enter key is pressed we need to show the menu. bool MenuButton::OnKeyReleased(const KeyEvent& e) { - if ((e.GetCharacter() == L' ') || (e.GetCharacter() == L'\n')) { + if ((e.GetCharacter() == VK_SPACE) || (e.GetCharacter() == VK_RETURN)) { return Activate(); } return true; |