mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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;
|
addTab = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
aboutToShowHistoryMenu(false);
|
|
||||||
aboutToShowBookmarksMenu();
|
|
||||||
|
|
||||||
if (addTab) {
|
if (addTab) {
|
||||||
int index = m_tabWidget->addView(startUrl, tr("New tab"), TabWidget::CleanPage);
|
int index = m_tabWidget->addView(startUrl, tr("New tab"), TabWidget::CleanPage);
|
||||||
m_tabWidget->setCurrentIndex(index);
|
m_tabWidget->setCurrentIndex(index);
|
||||||
@ -189,6 +186,10 @@ void QupZilla::postLaunch()
|
|||||||
m_tabWidget->addView(m_homepage);
|
m_tabWidget->addView(m_homepage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aboutToShowHistoryMenu(false);
|
||||||
|
aboutToHideHistoryMenu();
|
||||||
|
aboutToShowBookmarksMenu();
|
||||||
|
|
||||||
setUpdatesEnabled(true);
|
setUpdatesEnabled(true);
|
||||||
|
|
||||||
emit startingCompleted();
|
emit startingCompleted();
|
||||||
@ -401,10 +402,14 @@ void QupZilla::setupMenu()
|
|||||||
connect(m_actionRestoreTab, SIGNAL(triggered()), m_tabWidget, SLOT(restoreClosedTab()));
|
connect(m_actionRestoreTab, SIGNAL(triggered()), m_tabWidget, SLOT(restoreClosedTab()));
|
||||||
addAction(m_actionRestoreTab);
|
addAction(m_actionRestoreTab);
|
||||||
|
|
||||||
QAction* reloadByPassCacheAction = new QAction(this);
|
QShortcut* reloadByPassCacheAction = new QShortcut(QKeySequence("Ctrl+F5"), this);
|
||||||
reloadByPassCacheAction->setShortcut(QKeySequence("Ctrl+F5"));
|
connect(reloadByPassCacheAction, SIGNAL(activated()), this, SLOT(reloadByPassCache()));
|
||||||
connect(reloadByPassCacheAction, SIGNAL(triggered()), this, SLOT(reloadByPassCache()));
|
|
||||||
addAction(reloadByPassCacheAction);
|
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)
|
// Make shortcuts available even in fullscreen (menu hidden)
|
||||||
QList<QAction*> actions = menuBar()->actions();
|
QList<QAction*> actions = menuBar()->actions();
|
||||||
|
Loading…
Reference in New Issue
Block a user