Commit eda2be47 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Add shortcut to display plugins

parent 4543758d
......@@ -56,7 +56,7 @@ QList<QAction *> QuickCommandsPlugin::menuBarActions(Konsole::MainWindow *mainWi
{
QAction *toggleVisibilityAction = new QAction(i18n("Show Quick Commands"), mainWindow);
toggleVisibilityAction->setCheckable(true);
toggleVisibilityAction->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_F1));
connect(toggleVisibilityAction, &QAction::triggered, priv->dockForWindow[mainWindow], &QDockWidget::setVisible);
connect(priv->dockForWindow[mainWindow], &QDockWidget::visibilityChanged, toggleVisibilityAction, &QAction::setChecked);
......
......@@ -63,7 +63,7 @@ QList<QAction *> SSHManagerPlugin::menuBarActions(Konsole::MainWindow *mainWindo
QAction *toggleVisibilityAction = new QAction(i18n("Show SSH Manager"), mainWindow);
toggleVisibilityAction->setCheckable(true);
toggleVisibilityAction->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_F2));
connect(toggleVisibilityAction, &QAction::triggered, d->dockForWindow[mainWindow], &QDockWidget::setVisible);
connect(d->dockForWindow[mainWindow], &QDockWidget::visibilityChanged, toggleVisibilityAction, &QAction::setChecked);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment