Skip to content

Commit e8f55af

Browse files
authored
Automatically select all text on beatmap ID textboxes (#287)
1 parent 432e80a commit e8f55af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

PerformanceCalculatorGUI/Screens/BeatmapLeaderboardScreen.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ private void load()
118118
Anchor = Anchor.TopLeft,
119119
Label = "Beatmap ID",
120120
PlaceholderText = "Enter a beatmap ID or link",
121-
CommitOnFocusLoss = false
121+
CommitOnFocusLoss = false,
122+
SelectAllOnFocus = true
122123
},
123124
calculationButton = new StatefulButton("Start calculation")
124125
{

PerformanceCalculatorGUI/Screens/SimulateScreen.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ private void load(OsuColour osuColour)
178178
Label = "Beatmap ID",
179179
FixedLabelWidth = 100f,
180180
PlaceholderText = "Enter a beatmap ID or link",
181-
CommitOnFocusLoss = false
181+
CommitOnFocusLoss = false,
182+
SelectAllOnFocus = true
182183
},
183184
beatmapImportTypeSwitch = new SwitchButton
184185
{

0 commit comments

Comments
 (0)