Focus text field for Sign Tool Window, fixes #98

This commit is contained in:
Simon Robertshaw
2012-08-14 13:08:42 +01:00
parent 4f3e03e317
commit 49ae651dd3

View File

@@ -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)
{ {