| Summary: | Pressing Shift + Del, in addition to permanently deleting, also cuts the selected items to the clipboard | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | popov895 <popov895> |
| Component: | Desktop icons & Folder View widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bugseforuns, hein, kde, nate, plasma-bugs-null, popov895 |
| Priority: | NOR | Keywords: | usability |
| Version First Reported In: | 5.21.4 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-desktop/commit/1cceee9a9ef59696e067a4129cc702e31f51bcd1 | Version Fixed/Implemented In: | 5.27.5 |
| Sentry Crash Report: | |||
| Attachments: | Two actions with the same shortcut in Shortcuts KCM | ||
|
Description
popov895
2021-04-29 14:54:29 UTC
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. *** |