From 793bc33b2fa272cf9717c336ef62449515ca1da4 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Mon, 9 Jun 2025 18:40:33 +0200 Subject: [PATCH] fix right clicking on item reset search and scroll --- Source/Editor/Windows/Search/ContentFinder.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Editor/Windows/Search/ContentFinder.cs b/Source/Editor/Windows/Search/ContentFinder.cs index 12b479aea..9118739b8 100644 --- a/Source/Editor/Windows/Search/ContentFinder.cs +++ b/Source/Editor/Windows/Search/ContentFinder.cs @@ -42,6 +42,7 @@ namespace FlaxEditor.Windows.Search if (value == _selectedItem || (value != null && !_matchedItems.Contains(value))) return; + // Restore the previous selected item to the non-selected color if (_selectedItem != null) { _selectedItem.BackgroundColor = Color.Transparent; @@ -54,6 +55,7 @@ namespace FlaxEditor.Windows.Search _selectedItem.BackgroundColor = Style.Current.BackgroundSelected; if (_matchedItems.Count > VisibleItemCount) { + _selectedItem.Focus(); _resultPanel.ScrollViewTo(_selectedItem, true); } }