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.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/controls/link.cc b/views/controls/link.cc
index a9b8d7e..14bc112 100644
--- a/views/controls/link.cc
+++ b/views/controls/link.cc
@@ -127,10 +127,10 @@ bool Link::OnKeyPressed(const KeyEvent& e) {
return false;
}
-bool Link::OverrideAccelerator(const Accelerator& accelerator) {
+bool Link::SkipDefaultKeyEventProcessing(const KeyEvent& e) {
#if defined(OS_WIN)
- return (accelerator.GetKeyCode() == VK_SPACE) ||
- (accelerator.GetKeyCode() == VK_RETURN);
+ // Make sure we don't process space or enter as accelerators.
+ return (e.GetCharacter() == VK_SPACE) || (e.GetCharacter() == VK_RETURN);
#else
NOTIMPLEMENTED();
return false;