summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-09-29 14:31:28 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-09-29 14:46:44 +0200
commitdeda9bbdb1d52f9f030ce978a214430c86695d3e (patch)
treedbb4d2cc368e1c5d33f016df69fcc14ddc42feec /kde-plasma/plasma-integration/files
parentkde-frameworks/qqc2-desktop-style: Drop 5.74.0 (r0) (diff)
downloadgentoo-deda9bbdb1d52f9f030ce978a214430c86695d3e.tar.gz
gentoo-deda9bbdb1d52f9f030ce978a214430c86695d3e.tar.bz2
gentoo-deda9bbdb1d52f9f030ce978a214430c86695d3e.zip
kde-plasma/plasma-integration: Make folder view don't move to trash on Ctrl+D
Upstream commit 15c7926377065da0fea111be303816dca91d087a KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=426573 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-plasma/plasma-integration/files')
-rw-r--r--kde-plasma/plasma-integration/files/plasma-integration-5.19.5-use-standard-kde-shortcut-for-move-to-trash.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/kde-plasma/plasma-integration/files/plasma-integration-5.19.5-use-standard-kde-shortcut-for-move-to-trash.patch b/kde-plasma/plasma-integration/files/plasma-integration-5.19.5-use-standard-kde-shortcut-for-move-to-trash.patch
new file mode 100644
index 000000000000..7405dace6be1
--- /dev/null
+++ b/kde-plasma/plasma-integration/files/plasma-integration-5.19.5-use-standard-kde-shortcut-for-move-to-trash.patch
@@ -0,0 +1,34 @@
+From 15c7926377065da0fea111be303816dca91d087a Mon Sep 17 00:00:00 2001
+From: Nate Graham <nate@kde.org>
+Date: Tue, 15 Sep 2020 13:31:48 -0600
+Subject: [PATCH] Use KDE shortcuts for "move to trash" action coming from
+ QStandardKey
+
+QKeySequence::Delete is the Qt "Move to trash" action, which, by
+default, includes Ctrl+D as a shortcut. This is something we don't want
+in KDE software, so we need to intercept this action in our integration
+plugin and give it the standard KDE shortcuts instead, as we do for
+other actions.
+
+BUG: 426573
+FIXED-IN: 5.20
+---
+ src/platformtheme/kdeplatformtheme.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/platformtheme/kdeplatformtheme.cpp b/src/platformtheme/kdeplatformtheme.cpp
+index 24ac7e7..18b3f6f 100644
+--- a/src/platformtheme/kdeplatformtheme.cpp
++++ b/src/platformtheme/kdeplatformtheme.cpp
+@@ -257,6 +257,8 @@ QList<QKeySequence> KdePlatformTheme::keyBindings(QKeySequence::StandardKey key)
+ return KStandardShortcut::shortcut(KStandardShortcut::TabNext);
+ case QKeySequence::PreviousChild:
+ return KStandardShortcut::shortcut(KStandardShortcut::TabPrev);
++ case QKeySequence::Delete:
++ return KStandardShortcut::shortcut(KStandardShortcut::MoveToTrash);
+ default:
+ return QPlatformTheme::keyBindings(key);
+ }
+--
+GitLab
+