Commit be0e2ee3 authored by bdakin's avatar bdakin

Reviewed by Adam.

        Fix for http://bugs.webkit.org/show_bug.cgi?id=12135 REGRESSION: 
        <input> and <textarea> not focused on right click (4908884 in 
        Radar)

        * page/EventHandler.cpp:
        (WebCore::EventHandler::sendContextMenuEvent): Ask if we *have* 
        swallowed the event instead of if we *haven't* when deciding to 
        perform a selection.


git-svn-id: svn://svn.chromium.org/blink/trunk@18769 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent de5c3f24
2007-01-11 Beth Dakin <bdakin@apple.com>
Reviewed by Adam.
Fix for http://bugs.webkit.org/show_bug.cgi?id=12135 REGRESSION:
<input> and <textarea> not focused on right click (4908884 in
Radar)
* page/EventHandler.cpp:
(WebCore::EventHandler::sendContextMenuEvent): Ask if we *have*
swallowed the event instead of if we *haven't* when deciding to
perform a selection.
2007-01-11 Darin Adler <darin@apple.com>
Reviewed by Anders.
......
......@@ -1121,7 +1121,7 @@ bool EventHandler::sendContextMenuEvent(PlatformMouseEvent event)
MouseEventWithHitTestResults mev = doc->prepareMouseEvent(HitTestRequest(false, true), viewportPos, event);
swallowEvent = dispatchMouseEvent(contextmenuEvent, mev.targetNode(), true, 0, event, true);
if (!swallowEvent && !m_frame->selectionController()->contains(viewportPos) &&
if (swallowEvent && !m_frame->selectionController()->contains(viewportPos) &&
(m_frame->editor()->selectWordBeforeMenuEvent() || m_frame->editor()->clientIsEditable()
|| (mev.targetNode() && mev.targetNode()->isContentEditable()))) {
m_mouseDownMayStartSelect = true; // context menu events are always allowed to perform a selection
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment