Commit 8639b438 authored by Nate Graham's avatar Nate Graham
Browse files

Add standard Alt+Return shortcut for Properties menu item

parent d825e207
...@@ -177,6 +177,7 @@ FileOpsContextManagerItem::FileOpsContextManagerItem(ContextManager* manager, QL ...@@ -177,6 +177,7 @@ FileOpsContextManagerItem::FileOpsContextManagerItem(ContextManager* manager, QL
mShowPropertiesAction = file->addAction(QStringLiteral("file_show_properties"), this, SLOT(showProperties())); mShowPropertiesAction = file->addAction(QStringLiteral("file_show_properties"), this, SLOT(showProperties()));
mShowPropertiesAction->setText(i18n("Properties")); mShowPropertiesAction->setText(i18n("Properties"));
mShowPropertiesAction->setIcon(QIcon::fromTheme(QStringLiteral("document-properties"))); mShowPropertiesAction->setIcon(QIcon::fromTheme(QStringLiteral("document-properties")));
mShowPropertiesAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_Return));
mCreateFolderAction = file->addAction(QStringLiteral("file_create_folder"), this, SLOT(createFolder())); mCreateFolderAction = file->addAction(QStringLiteral("file_create_folder"), this, SLOT(createFolder()));
mCreateFolderAction->setText(i18n("Create Folder...")); mCreateFolderAction->setText(i18n("Create Folder..."));
......
...@@ -78,9 +78,11 @@ GVPart::GVPart(QWidget* parentWidget, QObject* parent, const QVariantList& /*arg ...@@ -78,9 +78,11 @@ GVPart::GVPart(QWidget* parentWidget, QObject* parent, const QVariantList& /*arg
QAction * action = new QAction(actionCollection()); QAction * action = new QAction(actionCollection());
action->setText(i18nc("@action", "Properties")); action->setText(i18nc("@action", "Properties"));
action->setShortcut(QKeySequence(Qt::ALT + Qt::Key_Return));
connect(action, &QAction::triggered, this, &GVPart::showProperties); connect(action, &QAction::triggered, this, &GVPart::showProperties);
actionCollection()->addAction(QStringLiteral("file_show_properties"), action); actionCollection()->addAction(QStringLiteral("file_show_properties"), action);
KStandardAction::saveAs(this, SLOT(saveAs()), actionCollection()); KStandardAction::saveAs(this, SLOT(saveAs()), actionCollection());
new GVBrowserExtension(this); new GVBrowserExtension(this);
......
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