Skip to content

Commit 59d335b

Browse files
committed
Select whole text on textbox focus
1 parent 204cea8 commit 59d335b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Source/ModdingEx/Private/ModdingEx.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,13 @@ void FModdingExModule::OnOpenBlueprintCreator() const
325325

326326
const auto PackagePath = SNew(SMultiLineEditableTextBox)
327327
.Text(FText::FromString("/Game/Pal/Blueprints/BP_GameBlueprint"))
328-
.ToolTipText(FText::FromString("The path to the blueprint (you can copy it from FModel)"));
328+
.ToolTipText(FText::FromString("The path to the blueprint (you can copy it from FModel)"))
329+
.SelectAllTextWhenFocused(true);
329330

330331
const auto ParentClass = SNew(SMultiLineEditableTextBox)
331332
.Text(FText::FromString("/Script/CoreUObject.Object"))
332-
.ToolTipText(FText::FromString("The parent class of the blueprint (UObject by default). Also accepts a json string with {\"ObjectName\":... , \"ObjectPath\":...}"));
333+
.ToolTipText(FText::FromString("The parent class of the blueprint (UObject by default). Also accepts a json string with {\"ObjectName\":... , \"ObjectPath\":...}"))
334+
.SelectAllTextWhenFocused(true);
333335

334336
const auto BlueprintCheck = SNew(SCheckBox)
335337
.Content()
@@ -408,7 +410,8 @@ void FModdingExModule::OnOpenModCreator() const
408410
const TSharedRef<SMultiLineEditableTextBox> ModNameEdit = SNew(SMultiLineEditableTextBox)
409411
.Text(FText::FromString("MyMod"))
410412
.Font(FSlateFontInfo(FPaths::EngineContentDir() / TEXT("Slate/Fonts/Roboto-Bold.ttf"), 12))
411-
.ToolTipText(FText::FromString("The name of the mod you want to create. This will be the name of the folder in the Mods folder"));
413+
.ToolTipText(FText::FromString("The name of the mod you want to create. This will be the name of the folder in the Mods folder"))
414+
.SelectAllTextWhenFocused(true);
412415

413416
const auto BlueprintCheck = SNew(SCheckBox)
414417
.Content()

0 commit comments

Comments
 (0)