Skip to content

Commit e41f35e

Browse files
committed
Make pressing Enter on waypoint placement window text box act as a click on the "Place" button
1 parent 40437ed commit e41f35e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/TSMapEditor/UI/Windows/PlaceWaypointWindow.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public override void Initialize()
3636

3737
tbWaypointNumber = FindChild<EditorNumberTextBox>(nameof(tbWaypointNumber));
3838
tbWaypointNumber.MaximumTextLength = (Constants.MaxWaypoint - 1).ToString(CultureInfo.InvariantCulture).Length;
39+
tbWaypointNumber.EnterPressed += (s, e) => BtnPlace_LeftClick(this, EventArgs.Empty);
3940

4041
lblDescription = FindChild<XNALabel>(nameof(lblDescription));
4142
lblDescription.Text = string.Format(Translate(this, "DescriptionText", "Input waypoint number (0-{0}):"), Constants.MaxWaypoint - 1);

0 commit comments

Comments
 (0)