summaryrefslogtreecommitdiffstats
path: root/views/controls/link.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/link.cc')
-rw-r--r--views/controls/link.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/views/controls/link.cc b/views/controls/link.cc
index 6619568..f2887e0 100644
--- a/views/controls/link.cc
+++ b/views/controls/link.cc
@@ -10,7 +10,6 @@
#include "app/gfx/color_utils.h"
#include "app/gfx/font.h"
-#include "base/keyboard_codes.h"
#include "base/logging.h"
#include "views/event.h"
@@ -124,8 +123,8 @@ void Link::OnMouseReleased(const MouseEvent& e, bool canceled) {
bool Link::OnKeyPressed(const KeyEvent& e) {
#if defined(OS_WIN)
- bool activate = ((e.GetKeyCode() == base::VKEY_SPACE) ||
- (e.GetKeyCode() == base::VKEY_RETURN));
+ bool activate = ((e.GetCharacter() == VK_SPACE) ||
+ (e.GetCharacter() == VK_RETURN));
#else
bool activate = false;
NOTIMPLEMENTED();
@@ -147,8 +146,7 @@ bool Link::OnKeyPressed(const KeyEvent& e) {
bool Link::SkipDefaultKeyEventProcessing(const KeyEvent& e) {
#if defined(OS_WIN)
// Make sure we don't process space or enter as accelerators.
- return (e.GetKeyCode() == base::VKEY_SPACE) ||
- (e.GetKeyCode() == base::VKEY_RETURN);
+ return (e.GetCharacter() == VK_SPACE) || (e.GetCharacter() == VK_RETURN);
#else
NOTIMPLEMENTED();
return false;