turns out flax has a method for this

This commit is contained in:
xxSeys1
2025-03-28 22:19:23 +01:00
parent ac60dc8068
commit 3acb80f320

View File

@@ -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();
}