diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webtab/webview.cpp | 2 | ||||
-rw-r--r-- | src/webwindow/webwindow.cpp | 8 | ||||
-rw-r--r-- | src/webwindow/webwindow.h | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp index dca2ee0e..e7275db2 100644 --- a/src/webtab/webview.cpp +++ b/src/webtab/webview.cpp @@ -721,7 +721,7 @@ void WebView::search() KService::Ptr engine = KService::serviceByDesktopPath(a->data().toString()); KUrl urlSearch = KUrl(SearchEngine::buildQuery(engine, selectedText())); - emit loadUrl(urlSearch, Rekonq::NewTab); + emit loadUrl(urlSearch, Rekonq::NewFocusedTab); } diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp index 2087a936..55a55e55 100644 --- a/src/webwindow/webwindow.cpp +++ b/src/webwindow/webwindow.cpp @@ -1004,6 +1004,14 @@ void WebWindow::keyBindings() } + +void WebWindow::findSelectedText() +{ + // Just done everything! Just show findbar... ;) + m_findBar->show(); +} + + // Main Toolbar methods ---------- diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h index 032da94f..590022a7 100644 --- a/src/webwindow/webwindow.h +++ b/src/webwindow/webwindow.h @@ -115,6 +115,8 @@ private Q_SLOTS: */ void notifyMessage(const QString &msg); + void findSelectedText(); + // File Menu slots void openLocation(); void fileOpen(); |