mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Added Alt+Left/Right shortcuts for history back/forward. Closes #136
This commit is contained in:
parent
7b337b4de8
commit
8320dd0615
|
@ -173,9 +173,6 @@ void QupZilla::postLaunch()
|
|||
addTab = true;
|
||||
}
|
||||
|
||||
aboutToShowHistoryMenu(false);
|
||||
aboutToShowBookmarksMenu();
|
||||
|
||||
if (addTab) {
|
||||
int index = m_tabWidget->addView(startUrl, tr("New tab"), TabWidget::CleanPage);
|
||||
m_tabWidget->setCurrentIndex(index);
|
||||
|
@ -189,6 +186,10 @@ void QupZilla::postLaunch()
|
|||
m_tabWidget->addView(m_homepage);
|
||||
}
|
||||
|
||||
aboutToShowHistoryMenu(false);
|
||||
aboutToHideHistoryMenu();
|
||||
aboutToShowBookmarksMenu();
|
||||
|
||||
setUpdatesEnabled(true);
|
||||
|
||||
emit startingCompleted();
|
||||
|
@ -401,10 +402,14 @@ void QupZilla::setupMenu()
|
|||
connect(m_actionRestoreTab, SIGNAL(triggered()), m_tabWidget, SLOT(restoreClosedTab()));
|
||||
addAction(m_actionRestoreTab);
|
||||
|
||||
QAction* reloadByPassCacheAction = new QAction(this);
|
||||
reloadByPassCacheAction->setShortcut(QKeySequence("Ctrl+F5"));
|
||||
connect(reloadByPassCacheAction, SIGNAL(triggered()), this, SLOT(reloadByPassCache()));
|
||||
addAction(reloadByPassCacheAction);
|
||||
QShortcut* reloadByPassCacheAction = new QShortcut(QKeySequence("Ctrl+F5"), this);
|
||||
connect(reloadByPassCacheAction, SIGNAL(activated()), this, SLOT(reloadByPassCache()));
|
||||
|
||||
QShortcut* backAction = new QShortcut(QKeySequence("Alt+Left"), this);
|
||||
connect(backAction, SIGNAL(activated()), this, SLOT(goBack()));
|
||||
|
||||
QShortcut* forwardAction = new QShortcut(QKeySequence("Alt+Right"), this);
|
||||
connect(forwardAction, SIGNAL(activated()), this, SLOT(goNext()));
|
||||
|
||||
// Make shortcuts available even in fullscreen (menu hidden)
|
||||
QList<QAction*> actions = menuBar()->actions();
|
||||
|
|
Loading…
Reference in New Issue
Block a user