SUMMARY Pressing Shift + Del in the Folder View performs a double action: in addition to permanently deleting, it also cuts the selected items to the clipboard. STEPS TO REPRODUCE 1. Select some item(s); 2. Press Shift+Del. OBSERVED RESULT Selected items are permanently deleted and cut to the clipboard at the same time. EXPECTED RESULT Selected items are permanently deleted. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE neon 5.21 User Edition / X11 KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.81.0 KDE Gear: 21.04.0 Qt Version: 5.15.2
Can confirm.
It appears that this is sort a Qt bug... or at least an incompatibility between us and Qt. You see, Qt assigns Shift+Del to "Cut" on KDE Plasma, Gnome, and Windows platforms. See https://doc.qt.io/qt-5/qkeysequence.html#standard-shortcuts We consume these definitions in plasma-integration: https://invent.kde.org/plasma/plasma-integration/-/blob/master/src/platformtheme/kdeplatformtheme.cpp#L195 And Folder view then makes those shortcuts available to the user... where they conflict with our own action for Shift+Delete. Not sure how to proceed.
Created attachment 138038 [details] Two actions with the same shortcut in Shortcuts KCM Personally, I'd like the behavior to be the same as in the Dolphin - permanently deletion.
Relevant link in other apps so we can see what they did: https://bugs.kde.org/show_bug.cgi?id=347373 The solution there looks very route-1, just un-assigning whatever is set as the shortcut for cut. Something I would have almost certainly not accepted, but now you can claim prior art and I won't have a choice.
Urgh. What would you suggest as a more durable solution?
How about adding a keyboard shortcuts settings page to the Folder View applet?
Git commit 2c6f537026ac2b4a150b4bb44066f59f8791e30f by Eugene Popov. Committed on 19/04/2023 at 15:10. Pushed by ngraham into branch 'master'. Folder View: fix keyboard shortcuts handling Avoid handling the keyboard shortcut multiple times. M +8 -5 containments/desktop/package/contents/ui/FolderView.qml M +10 -3 containments/desktop/plugins/folder/shortcut.cpp https://invent.kde.org/plasma/plasma-desktop/commit/2c6f537026ac2b4a150b4bb44066f59f8791e30f
Git commit 1cceee9a9ef59696e067a4129cc702e31f51bcd1 by Nate Graham, on behalf of Eugene Popov. Committed on 19/04/2023 at 16:40. Pushed by ngraham into branch 'Plasma/5.27'. Folder View: fix keyboard shortcuts handling Avoid handling the keyboard shortcut multiple times. (cherry picked from commit 2c6f537026ac2b4a150b4bb44066f59f8791e30f) M +8 -5 containments/desktop/package/contents/ui/FolderView.qml M +10 -3 containments/desktop/plugins/folder/shortcut.cpp https://invent.kde.org/plasma/plasma-desktop/commit/1cceee9a9ef59696e067a4129cc702e31f51bcd1
*** Bug 460302 has been marked as a duplicate of this bug. ***