mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Added F3 shortcut to find next on page + source code. See #74
This commit is contained in:
parent
b5fa490573
commit
3e62bee69d
|
@ -39,6 +39,9 @@ SourceViewerSearch::SourceViewerSearch(SourceViewer* parent)
|
|||
connect(ui->next, SIGNAL(clicked()), this, SLOT(next()));
|
||||
connect(ui->previous, SIGNAL(clicked()), this, SLOT(previous()));
|
||||
|
||||
QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this);
|
||||
connect(findNextAction, SIGNAL(activated()), this, SLOT(next()));
|
||||
|
||||
startAnimation();
|
||||
qApp->installEventFilter(this);
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <QDebug>
|
||||
#include <QTextDocument>
|
||||
#include <QTextCursor>
|
||||
#include <QShortcut>
|
||||
|
||||
#include "animatedwidget.h"
|
||||
|
||||
|
|
|
@ -50,9 +50,9 @@ QObject* WebPluginFactory::create(const QString &mimeType, const QUrl &url, cons
|
|||
if (whitelist.contains(url.host()) || whitelist.contains("www." + url.host()) || whitelist.contains(url.host().remove("www."))) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Click2Flash already accepted
|
||||
if (ClickToFlash::isAlreadyAccepted(url, argumentNames, argumentValues)) {
|
||||
qDebug() << "already accepted";
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,9 @@ SearchToolBar::SearchToolBar(QupZilla* mainClass, QWidget* parent)
|
|||
connect(ui->caseSensitive, SIGNAL(clicked()), this, SLOT(refreshFindFlags()));
|
||||
startAnimation();
|
||||
|
||||
QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this);
|
||||
connect(findNextAction, SIGNAL(activated()), this, SLOT(findNext()));
|
||||
|
||||
p_QupZilla->actionStop()->setEnabled(false);
|
||||
qApp->installEventFilter(this);
|
||||
}
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include <QLabel>
|
||||
#include <QFlags>
|
||||
#include <QPropertyAnimation>
|
||||
#include <QShortcut>
|
||||
|
||||
#include "animatedwidget.h"
|
||||
|
||||
namespace Ui
|
||||
|
|
Loading…
Reference in New Issue
Block a user