From 82870d553192a0a796845f8ed867576de5a7fca6 Mon Sep 17 00:00:00 2001 From: nowrep Date: Thu, 22 Dec 2011 23:45:55 +0100 Subject: [PATCH] Added Shift+F3 shortcut to find previous on page. See #74 - "Shift+F3" and "F3" shortcuts are also available when searching in source code --- src/other/sourceviewersearch.cpp | 3 +++ src/webview/searchtoolbar.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/other/sourceviewersearch.cpp b/src/other/sourceviewersearch.cpp index ab3523342..c1d83a236 100644 --- a/src/other/sourceviewersearch.cpp +++ b/src/other/sourceviewersearch.cpp @@ -42,6 +42,9 @@ SourceViewerSearch::SourceViewerSearch(SourceViewer* parent) QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this); connect(findNextAction, SIGNAL(activated()), this, SLOT(next())); + QShortcut* findPreviousAction = new QShortcut(QKeySequence("Shift+F3"), this); + connect(findPreviousAction, SIGNAL(activated()), this, SLOT(previous())); + startAnimation(); qApp->installEventFilter(this); } diff --git a/src/webview/searchtoolbar.cpp b/src/webview/searchtoolbar.cpp index 44331f845..13f974cc4 100644 --- a/src/webview/searchtoolbar.cpp +++ b/src/webview/searchtoolbar.cpp @@ -47,6 +47,9 @@ SearchToolBar::SearchToolBar(QupZilla* mainClass, QWidget* parent) QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this); connect(findNextAction, SIGNAL(activated()), this, SLOT(findNext())); + QShortcut* findPreviousAction = new QShortcut(QKeySequence("Shift+F3"), this); + connect(findPreviousAction, SIGNAL(activated()), this, SLOT(findPrevious())); + p_QupZilla->actionStop()->setEnabled(false); qApp->installEventFilter(this); }