From efe11d0105b57d66211ab79fe9c1a26028862b8b Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Fri, 20 Jan 2023 00:55:54 -0600 Subject: [PATCH] Added selecting text box when tag add drop panel open --- Source/Editor/CustomEditors/Editors/TagEditor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Editor/CustomEditors/Editors/TagEditor.cs b/Source/Editor/CustomEditors/Editors/TagEditor.cs index 3f425d845..56ffdbaba 100644 --- a/Source/Editor/CustomEditors/Editors/TagEditor.cs +++ b/Source/Editor/CustomEditors/Editors/TagEditor.cs @@ -546,6 +546,7 @@ namespace FlaxEditor.CustomEditors.Editors { if (panel.IsClosed) { + // Resize/ Move UI to fit space with drop down foreach (var child in menu.Children) { if (child == panel) @@ -563,6 +564,7 @@ namespace FlaxEditor.CustomEditors.Editors } else { + // Resize/ Move UI to fit space with drop down foreach (var child in menu.Children) { if (child == panel) @@ -577,6 +579,9 @@ namespace FlaxEditor.CustomEditors.Editors child.Y += dropPanelOpenHeight; nameTextBox.Text = String.Empty; } + // Select tag name box on open + nameTextBox.Focus(); + nameTextBox.SelectionRange = new TextRange(nameTextBox.Text.Length, nameTextBox.Text.Length); } };