| Index: Source/core/page/EventHandler.cpp
|
| diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
|
| index 95753d27e1432353cf0af5db2509789e81797aeb..755075968538a5b6ba6a6ebe17f0a2a770e7d31e 100644
|
| --- a/Source/core/page/EventHandler.cpp
|
| +++ b/Source/core/page/EventHandler.cpp
|
| @@ -2045,7 +2045,7 @@ bool EventHandler::dispatchMouseEvent(const AtomicString& eventType, Node* targe
|
| // if the page already set it (e.g., by canceling default behavior).
|
| if (Page* page = m_frame->page()) {
|
| if (node && node->isMouseFocusable()) {
|
| - if (!page->focusController()->setFocusedNode(node, m_frame))
|
| + if (!page->focusController()->setFocusedNode(node, m_frame, FocusDirectionMouse))
|
| swallowEvent = true;
|
| } else if (!node || !node->focused()) {
|
| if (!page->focusController()->setFocusedNode(0, m_frame))
|
| @@ -3046,6 +3046,7 @@ static void handleKeyboardSelectionMovement(FrameSelection* selection, KeyboardE
|
|
|
| switch (focusDirectionForKey(event->keyIdentifier())) {
|
| case FocusDirectionNone:
|
| + case FocusDirectionMouse:
|
| return;
|
| case FocusDirectionForward:
|
| case FocusDirectionBackward:
|
|
|