summaryrefslogtreecommitdiffstats
path: root/chrome/views/menu_button.cc
diff options
context:
space:
mode:
authorklink@google.com <klink@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 18:21:24 +0000
committerklink@google.com <klink@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 18:21:24 +0000
commit1881f514b3d764da8c76861c5fc90d954675579c (patch)
treeccfb6e8d5d1f454f6983604f497e7c20c108f442 /chrome/views/menu_button.cc
parent46c62a04ce7d06f46d85d8ed4c80dac96ec31009 (diff)
downloadchromium_src-1881f514b3d764da8c76861c5fc90d954675579c.zip
chromium_src-1881f514b3d764da8c76861c5fc90d954675579c.tar.gz
chromium_src-1881f514b3d764da8c76861c5fc90d954675579c.tar.bz2
Extends the toolbar keyboard support. Adds skipping of unavailable elements of the toolbar, to accomodate for quicker keyboard traversal. Fixes tooltip display on initial focusing of the toolbar. Also fixes the support for VK_SPACE and VK_ENTER.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/menu_button.cc')
-rw-r--r--chrome/views/menu_button.cc2
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;