| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index c3848e786e7c5dc45f6e3d87db757a574632ec2a..34731113ea09d26f373bfa93f774789d6bad6a0a 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -2236,8 +2236,7 @@ bool Element::supportsSpatialNavigationFocus() const
|
| // i.e. checks if click or keyboard event handler is specified.
|
| // This is the way to make it possible to navigate to (focus) elements
|
| // which web designer meant for being active (made them respond to click events).
|
| -
|
| - if (!isSpatialNavigationEnabled(document().frame()))
|
| + if (!isSpatialNavigationEnabled(document().frame()) || spatialNavigationIgnoresEventHandlers(document().frame()))
|
| return false;
|
| if (hasEventListeners(EventTypeNames::click)
|
| || hasEventListeners(EventTypeNames::keydown)
|
|
|