Skip to content

Commit 96859ee

Browse files
committed
Select waypoint text box by default when opening waypoint placement window
1 parent e41f35e commit 96859ee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/TSMapEditor/UI/Windows/PlaceWaypointWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public void Open(Point2D cellCoords)
9797
tbWaypointNumber.Value = availableWaypointNumber;
9898

9999
Show();
100+
101+
WindowManager.SelectedControl = tbWaypointNumber;
102+
tbWaypointNumber.SetSelection(0, tbWaypointNumber.Text.Length);
100103
}
101104

102105
public int GetAvailableWaypointNumber()

0 commit comments

Comments
 (0)