1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 17:27:24 +08:00

Only select all text in mod search text box if enter press selected anything

This commit is contained in:
Bartłomiej Dach 2024-01-15 19:09:50 +01:00
parent c0d4ed4789
commit c46615839d
No known key found for this signature in database

View File

@ -719,9 +719,10 @@ namespace osu.Game.Overlays.Mods
ModState? firstMod = columnFlow.Columns.OfType<ModColumn>().FirstOrDefault(m => m.IsPresent)?.AvailableMods.FirstOrDefault(x => x.Visible);
if (firstMod is not null)
{
firstMod.Active.Value = !firstMod.Active.Value;
SearchTextBox.SelectAll();
SearchTextBox.SelectAll();
}
return true;
}