Changeset 41360 in webkit


Ignore:
Timestamp:
Mar 2, 2009 8:55:35 AM (15 years ago)
Author:
treat@webkit.org
Message:

2009-03-02 Benjamin C Meyer <benjamin.meyer@torchmobile.com>

Reviewed by George Staikos.

https://bugs.webkit.org/show_bug.cgi?id=21230
On X11 match the behavior of Firefox and also copy the url to the
clipboard selection when the action Copy Link Location is executed.

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

Legend:

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

    r41210 r41360  
    14841484            break;
    14851485        }
    1486         case CopyLinkToClipboard:
     1486        case CopyLinkToClipboard: {
     1487#if defined(Q_WS_X11)
     1488            bool oldSelectionMode = Pasteboard::generalPasteboard()->isSelectionMode();
     1489            Pasteboard::generalPasteboard()->setSelectionMode(true);
    14871490            editor->copyURL(d->hitTestResult.linkUrl(), d->hitTestResult.linkText());
    1488             break;
     1491            Pasteboard::generalPasteboard()->setSelectionMode(oldSelectionMode);
     1492#endif
     1493            editor->copyURL(d->hitTestResult.linkUrl(), d->hitTestResult.linkText());
     1494            break;
     1495        }
    14891496        case OpenImageInNewWindow:
    14901497            openNewWindow(d->hitTestResult.imageUrl(), frame);
  • trunk/WebKit/qt/ChangeLog

    r41210 r41360  
     12009-03-02  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
     2
     3        Reviewed by George Staikos.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=21230
     6        On X11 match the behavior of Firefox and also copy the url to the
     7        clipboard selection when the action Copy Link Location is executed.
     8
     9        * Api/qwebpage.cpp:
     10        (QWebPage::triggerAction):
     11
    1122009-02-25  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
    213
Note: See TracChangeset for help on using the changeset viewer.