diff options
author | Domenico Panella <pandom79@gmail.com> | 2020-08-29 18:06:07 +0000 |
---|---|---|
committer | Nate Graham <nate@kde.org> | 2020-08-29 18:06:07 +0000 |
commit | eeb2bbeff7f1ee74b907d92acb0eae6a65590ad7 (patch) | |
tree | 52251211cca1e8cf7c0c798fab6840862a67deda /src/gui/kstandardshortcut.cpp | |
parent | 7dbe2eb69e5b251b0c193f1a4dbbf4c69e2a3330 (diff) | |
download | kconfig-eeb2bbeff7f1ee74b907d92acb0eae6a65590ad7.tar.gz kconfig-eeb2bbeff7f1ee74b907d92acb0eae6a65590ad7.tar.bz2 |
Add standard shortcut for "Create Folder"
Diffstat (limited to 'src/gui/kstandardshortcut.cpp')
-rw-r--r-- | src/gui/kstandardshortcut.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kstandardshortcut.cpp b/src/gui/kstandardshortcut.cpp index a91a2397..70fef713 100644 --- a/src/gui/kstandardshortcut.cpp +++ b/src/gui/kstandardshortcut.cpp @@ -167,6 +167,7 @@ static KStandardShortcutInfo g_infoStandardShortcut[] = { // https://commits.kde.org/kxmlgui/8eabbf6725386e716b7536c71a9181dfe5d959f0 { DeleteFile, "DeleteFile", QT_TRANSLATE_NOOP3("KStandardShortcut", "Delete", "@action"), SHIFT(Delete), 0, QList<QKeySequence>(), false, Category::File }, { RenameFile, "RenameFile", QT_TRANSLATE_NOOP3("KStandardShortcut", "Rename", "@action"), Qt::Key_F2, 0, QList<QKeySequence>(), false, Category::File }, + { CreateFolder, "CreateFolder", QT_TRANSLATE_NOOP3("KStandardShortcut", "Create Folder", "@action"), Qt::Key_F10, 0, QList<QKeySequence>(), false, Category::File }, { MoveToTrash, "MoveToTrash", QT_TRANSLATE_NOOP3("KStandardShortcut", "Move to Trash", "@action"), Qt::Key_Delete, 0, QList<QKeySequence>(), false, Category::File }, { Donate, "Donate", QT_TRANSLATE_NOOP3("KStandardShortcut", "Donate", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Help }, { ShowHideHiddenFiles, "ShowHideHiddenFiles", QT_TRANSLATE_NOOP3("KStandardShortcut", "Show/Hide Hidden Files", "@action"), CTRL(H), ALT(Period), QList<QKeySequence>(), false, Category::View }, @@ -575,6 +576,10 @@ const QList<QKeySequence> &renameFile() { return shortcut(RenameFile); } +const QList<QKeySequence> &createFolder() +{ + return shortcut(CreateFolder); +} const QList<QKeySequence> &moveToTrash() { return shortcut(MoveToTrash); |