mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-14 02:52: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:
parent
72077ab496
commit
82870d5531
|
@ -42,6 +42,9 @@ SourceViewerSearch::SourceViewerSearch(SourceViewer* parent)
|
||||||
QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this);
|
QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this);
|
||||||
connect(findNextAction, SIGNAL(activated()), this, SLOT(next()));
|
connect(findNextAction, SIGNAL(activated()), this, SLOT(next()));
|
||||||
|
|
||||||
|
QShortcut* findPreviousAction = new QShortcut(QKeySequence("Shift+F3"), this);
|
||||||
|
connect(findPreviousAction, SIGNAL(activated()), this, SLOT(previous()));
|
||||||
|
|
||||||
startAnimation();
|
startAnimation();
|
||||||
qApp->installEventFilter(this);
|
qApp->installEventFilter(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,9 @@ SearchToolBar::SearchToolBar(QupZilla* mainClass, QWidget* parent)
|
||||||
QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this);
|
QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this);
|
||||||
connect(findNextAction, SIGNAL(activated()), this, SLOT(findNext()));
|
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);
|
p_QupZilla->actionStop()->setEnabled(false);
|
||||||
qApp->installEventFilter(this);
|
qApp->installEventFilter(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user