Commit 324ea5f7 authored by Nate Graham's avatar Nate Graham 💤
Browse files

Set default shortcut for properties action

Alt+Return is the shortcut used in Dolphin to open the Properties
window.
parent 5b25ed33
Pipeline #22333 canceled with stage
......@@ -772,6 +772,7 @@ void Part::setupViewerActions()
m_showProperties = ac->addAction(QStringLiteral("properties"));
m_showProperties->setText(i18n("&Properties"));
m_showProperties->setIcon(QIcon::fromTheme(QStringLiteral("document-properties")));
ac->setDefaultShortcuts(m_showProperties, {QKeySequence(Qt::ALT + Qt::Key_Return)});
connect(m_showProperties, &QAction::triggered, this, &Part::slotShowProperties);
m_showProperties->setEnabled( false );
......
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