Changeset 56805 in webkit


Ignore:
Timestamp:
Mar 30, 2010 1:10:52 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-30 Joe Ligman <joseph.ligman@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] QGraphicsScene mousePressEvent does not set the clickCausedFocus flag
https://bugs.webkit.org/show_bug.cgi?id=35259

The clickCausedFocus flag is not being set in method
mousePressEvent(QGraphicsSceneMouseEvent* ev). This flag is used
in conjunction with QStyle::RSIP_OnMouseClickAndAlreadyFocused when
deciding to launch the software input panel.

  • Api/qwebpage.cpp: (QWebPagePrivate::mousePressEvent):
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebpage.cpp

    r56750 r56805  
    798798        return;
    799799
     800    RefPtr<WebCore::Node> oldNode;
     801    if (page->focusController()->focusedFrame()
     802        && page->focusController()->focusedFrame()->document())
     803        oldNode = page->focusController()->focusedFrame()->document()->focusedNode();
     804
    800805    if (tripleClickTimer.isActive()
    801806            && (ev->pos().toPoint() - tripleClick).manhattanLength()
     
    811816        accepted = frame->eventHandler()->handleMousePressEvent(mev);
    812817    ev->setAccepted(accepted);
     818
     819    RefPtr<WebCore::Node> newNode;
     820    if (page->focusController()->focusedFrame()
     821        && page->focusController()->focusedFrame()->document())
     822        newNode = page->focusController()->focusedFrame()->document()->focusedNode();
     823
     824    if (newNode && oldNode != newNode)
     825        clickCausedFocus = true;
    813826}
    814827
  • trunk/WebKit/qt/ChangeLog

    r56784 r56805  
     12010-03-30  Joe Ligman  <joseph.ligman@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] QGraphicsScene mousePressEvent does not set the clickCausedFocus flag
     6        https://bugs.webkit.org/show_bug.cgi?id=35259
     7
     8        The clickCausedFocus flag is not being set in method
     9        mousePressEvent(QGraphicsSceneMouseEvent* ev). This flag is used
     10        in conjunction with QStyle::RSIP_OnMouseClickAndAlreadyFocused when
     11        deciding to launch the software input panel.
     12
     13        * Api/qwebpage.cpp:
     14        (QWebPagePrivate::mousePressEvent):
     15
    1162010-03-30  Luiz Agostini  <luiz.agostini@openbossa.org>
    217
Note: See TracChangeset for help on using the changeset viewer.