Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1601)

Unified Diff: Source/core/svg/SVGAElement.cpp

Issue 896383002: Revert 184783 "The link should be activated by enter key on focus.." (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLAnchorElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAElement.cpp
diff --git a/Source/core/svg/SVGAElement.cpp b/Source/core/svg/SVGAElement.cpp
index 12e971eef5b2670b9b178121c9f2f9f322ef5b4b..bebcd3a86386143c021caccee6880af74b2b13fa 100644
--- a/Source/core/svg/SVGAElement.cpp
+++ b/Source/core/svg/SVGAElement.cpp
@@ -118,9 +118,7 @@ RenderObject* SVGAElement::createRenderer(RenderStyle*)
void SVGAElement::defaultEventHandler(Event* event)
{
if (isLink()) {
- Node* target = event->target() ? event->target()->toNode() : 0;
- bool hasFocus = focused() || (target && target->focused());
- if (hasFocus && isEnterKeyKeypressEvent(event)) {
+ if (focused() && isEnterKeyKeydownEvent(event)) {
event->setDefaultHandled();
dispatchSimulatedClick(event);
return;
« no previous file with comments | « Source/core/html/HTMLAnchorElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698