From d46d9a4c4a6784766bb7a7a409c70c3c04ab8079 Mon Sep 17 00:00:00 2001 From: Leonhard Kargl Date: Thu, 29 Oct 2026 21:00:51 +0100 Subject: [PATCH] SlingshotView: Fix activating search results with enter has_focus only check if actually this widget has the focus. In search entry however the focus has the used editable implementation. To fix this we can just remove this check because the search entry can only be activated if it has the focus. --- src/SlingshotView.vala | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/SlingshotView.vala b/src/SlingshotView.vala index aad38f6b..4beb39ea 100644 --- a/src/SlingshotView.vala +++ b/src/SlingshotView.vala @@ -185,13 +185,6 @@ public class Slingshot.SlingshotView : Granite.Bin, UnityClient { return; } - if (!search_entry.has_focus) { - // A row in the search view may have focus instead, - // so let the row itself handle the activation and do nothing here - // to prevent the selection from being activated twice - return; - } - search_view.activate_selection (); }