From 3acb80f32044683da7eff0c7bbd1e6f6ba4335eb Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Fri, 28 Mar 2025 22:19:23 +0100 Subject: [PATCH] turns out flax has a method for this --- Source/Editor/Windows/Search/ContentFinder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Editor/Windows/Search/ContentFinder.cs b/Source/Editor/Windows/Search/ContentFinder.cs index d7111997e..0788ce8a8 100644 --- a/Source/Editor/Windows/Search/ContentFinder.cs +++ b/Source/Editor/Windows/Search/ContentFinder.cs @@ -161,7 +161,8 @@ namespace FlaxEditor.Windows.Search // Setup _resultPanel.ScrollViewTo(Float2.Zero); - _searchBox.SelectionRange = new TextRange(0, _searchBox.TextLength); + // Select the text in the search bar so that the user can just start typing + _searchBox.SelectAll(); _searchBox.Focus(); }