1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From 9a2235472c2e2ca37203fb961875c8172a529de9 Mon Sep 17 00:00:00 2001
From: Noah Davis <noahadvs@gmail.com>
Date: Mon, 14 Apr 2025 14:10:09 -0400
Subject: [PATCH] AbstractKickoffItemDelegate: block action trigger while
dragging
BUG: 501585
---
.../package/contents/ui/AbstractKickoffItemDelegate.qml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/applets/kickoff/package/contents/ui/AbstractKickoffItemDelegate.qml b/applets/kickoff/package/contents/ui/AbstractKickoffItemDelegate.qml
index 077962f05f..4f955cf3d3 100644
--- a/applets/kickoff/package/contents/ui/AbstractKickoffItemDelegate.qml
+++ b/applets/kickoff/package/contents/ui/AbstractKickoffItemDelegate.qml
@@ -122,7 +122,8 @@ T.ItemDelegate {
// Unless we're showing search results, eat the activation if we
// don't have focus, to prevent the return/enter key from
// inappropriately activating unfocused items
- if (!root.activeFocus && !root.isSearchResult) {
+ // Also block activation while dragging.
+ if ((!root.activeFocus && !root.isSearchResult) || dragHandler.active || touchDragHandler.active) {
return;
}
view.currentIndex = index
--
GitLab
|