Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 68f2c57a authored by Rinigus Saar's avatar Rinigus Saar Committed by Jonah Brüchert

allow to search online for selected text

parent e50a5cba
......@@ -127,6 +127,11 @@ WebEngineView {
text: i18n("Paste")
onTriggered: webEngineView.triggerWebAction(WebEngineView.Paste)
}
Controls.MenuItem {
enabled: contextMenu.request != null && contextMenu.request.selectedText
text: contextMenu.request.selectedText ? i18n("Search online for '%1'", contextMenu.request.selectedText) : i18n("Search online")
onTriggered: tabsModel.newTab(UrlUtils.urlFromUserInput(BrowserManager.searchBaseUrl + contextMenu.request.selectedText));
}
Controls.MenuItem {
enabled: contextMenu.request !== null && contextMenu.request.linkUrl !== ""
text: i18n("Copy Url")
......
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