diff options
| author | Elvis Angelaccio <[email protected]> | 2017-09-17 11:56:42 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2017-09-17 11:56:42 +0200 |
| commit | 49396318f0f37f913a91bf02484a16e34fec6bf4 (patch) | |
| tree | 8d8274df0e2b71aab201eb16679243cff573695d /src/views/dolphinviewactionhandler.cpp | |
| parent | d1b68db1a348f22eb8f6b6ffaae5097820385e83 (diff) | |
| parent | 478f404b8abf924a0e3e21bbf1dd49aefbe47672 (diff) | |
Merge branch 'Applications/17.08'
Diffstat (limited to 'src/views/dolphinviewactionhandler.cpp')
| -rw-r--r-- | src/views/dolphinviewactionhandler.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp index 447d46f53..d0b9e7dc1 100644 --- a/src/views/dolphinviewactionhandler.cpp +++ b/src/views/dolphinviewactionhandler.cpp @@ -110,7 +110,12 @@ void DolphinViewActionHandler::createActions() KStandardAction::renameFile(this, &DolphinViewActionHandler::slotRename, m_actionCollection); KStandardAction::moveToTrash(this, &DolphinViewActionHandler::slotTrashActivated, m_actionCollection); - KStandardAction::deleteFile(this, &DolphinViewActionHandler::slotDeleteItems, m_actionCollection); + auto deleteAction = KStandardAction::deleteFile(this, &DolphinViewActionHandler::slotDeleteItems, m_actionCollection); + auto deleteShortcuts = deleteAction->shortcuts(); + if (!deleteShortcuts.contains(Qt::SHIFT | Qt::Key_Delete)) { + deleteShortcuts.append(Qt::SHIFT | Qt::Key_Delete); + m_actionCollection->setDefaultShortcuts(deleteAction, deleteShortcuts); + } // This action is useful for being enabled when KStandardAction::MoveToTrash should be // disabled and KStandardAction::DeleteFile is enabled (e.g. non-local files), so that Key_Del |
