mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Added Ctrl+F4 shortcut to close current tab.
This commit is contained in:
parent
1c3397b42e
commit
54724ead2b
@ -554,6 +554,9 @@ void QupZilla::setupMenu()
|
||||
QShortcut* openLocationAction = new QShortcut(QKeySequence("Alt+D"), this);
|
||||
connect(openLocationAction, SIGNAL(activated()), this, SLOT(openLocation()));
|
||||
|
||||
QShortcut* closeTabAction = new QShortcut(QKeySequence("Ctrl+F4"), this);
|
||||
connect(closeTabAction, SIGNAL(activated()), m_tabWidget, SLOT(closeTab()));
|
||||
|
||||
// Make shortcuts available even in fullscreen (menu hidden)
|
||||
QList<QAction*> actions = menuBar()->actions();
|
||||
foreach(QAction * action, actions) {
|
||||
|
Loading…
Reference in New Issue
Block a user