]> cloud.milkyroute.net Git - dolphin.git/commit
Make sure we always have Shift+Del as shortcut
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 2 Sep 2017 14:28:49 +0000 (16:28 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 17 Sep 2017 09:06:32 +0000 (11:06 +0200)
commitcdd002c57cde0480e6e02c7942e9b92af9d0a3e7
treed3aab65d65d7cb32ec6f1b9c29801df5b85f7b74
parent0006e9997e86f5522375dc082d890e0c5710a0a2
Make sure we always have Shift+Del as shortcut

After commit 68bb0ec22a the shortcut for the Delete action is not
necessarily Shift+Del, but whatever the user set in System Setting.
However DolphinRemoveAction assumes/hardcodes Shift+Del, so we should
always make sure we have this shortcut around, for consistency.

We just need to add it (if necessary) to the list of shortcuts of the
action. However:

* for the actual Delete action, we need to append it (if we'd prepend it,
  it would override a custom primary shortcut in the 'Configure Shortcuts' dialog).
* for DolphinRemoveAction, we need to prepend it in order to have
  Shift+Del (rather than the custom primary shortcut) in the context menu.

Differential Revision: https://phabricator.kde.org/D7655
src/dolphinremoveaction.cpp
src/views/dolphinviewactionhandler.cpp