Commit 07e1d894 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Use KActionCollection::setDefaultShortcut

parent 6ad822ec
......@@ -195,7 +195,7 @@ void KateViewManager::setupActions()
a = m_mainWindow->actionCollection()->addAction(QStringLiteral("viewspace_focus_nav_bar"));
a->setText(i18n("Focus Navigation Bar"));
a->setToolTip(i18n("Focus the navigation bar"));
a->setShortcut(Qt::CTRL | Qt::SHIFT | Qt::Key_Period);
m_mainWindow->actionCollection()->setDefaultShortcut(a, Qt::CTRL | Qt::SHIFT | Qt::Key_Period);
connect(a, &QAction::triggered, this, [this] {
activeViewSpace()->focusNavigationBar();
});
......
Markdown is supported
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