1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Added Shift+F3 shortcut to find previous on page. See #74

- "Shift+F3" and "F3" shortcuts are also available when
   searching in source code
This commit is contained in:
nowrep 2011-12-22 23:45:55 +01:00
parent 72077ab496
commit 82870d5531
2 changed files with 6 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}