summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/star_toggle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/star_toggle.cc')
-rw-r--r--chrome/browser/views/star_toggle.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/star_toggle.cc b/chrome/browser/views/star_toggle.cc
index 0e03f91..ebb67ac 100644
--- a/chrome/browser/views/star_toggle.cc
+++ b/chrome/browser/views/star_toggle.cc
@@ -6,6 +6,7 @@
#include "app/gfx/canvas.h"
#include "app/resource_bundle.h"
+#include "base/keyboard_codes.h"
#include "chrome/app/chrome_dll_resource.h"
#include "grit/theme_resources.h"
@@ -63,7 +64,8 @@ void StarToggle::OnMouseReleased(const views::MouseEvent& e,
}
bool StarToggle::OnKeyPressed(const views::KeyEvent& e) {
- if ((e.GetCharacter() == VK_SPACE) || (e.GetCharacter() == VK_RETURN)) {
+ if ((e.GetKeyCode() == base::VKEY_SPACE) ||
+ (e.GetKeyCode() == base::VKEY_RETURN)) {
SwitchState();
return true;
}