From 4f7377850103dc9106c29105e0ab66926c7cc5c5 Mon Sep 17 00:00:00 2001
From: Sergios - Anestis Kefalidis <sergioskefalidis@gmail.com>
Date: Wed, 30 Mar 2022 08:26:29 +0300
Subject: [PATCH] Fix: Escape does not unselect files.

The cause is that Escape is also used for cancelling the search. The fix is to not consume the Escape
event when a search is not active.
---
 thunar/thunar-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 60cc402c2..2accdad04 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -3102,7 +3102,7 @@ thunar_window_action_cancel_search (ThunarWindow *window)
   _thunar_return_val_if_fail (THUNAR_IS_WINDOW (window), FALSE);
 
   if (window->is_searching == FALSE)
-    return TRUE;
+    return FALSE;
 
   thunar_location_bar_cancel_search (THUNAR_LOCATION_BAR (window->location_bar));
   thunar_standard_view_set_searching (THUNAR_STANDARD_VIEW (window->view), NULL);
-- 
GitLab