mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-19 14:41:29 +02:00
Focus text field for Sign Tool Window, fixes #98
This commit is contained in:
@@ -136,6 +136,7 @@ SignWindow::SignWindow(SignTool * tool_, Simulation * sim_, int signID_, ui::Poi
|
|||||||
textField->Appearance.VerticalAlign = ui::Appearance::AlignMiddle;
|
textField->Appearance.VerticalAlign = ui::Appearance::AlignMiddle;
|
||||||
textField->SetActionCallback(new SignTextAction(this));
|
textField->SetActionCallback(new SignTextAction(this));
|
||||||
AddComponent(textField);
|
AddComponent(textField);
|
||||||
|
FocusComponent(textField);
|
||||||
|
|
||||||
if(signID!=-1)
|
if(signID!=-1)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user