mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 09:02:58 +08:00
Only select all text in mod search text box if enter press selected anything
This commit is contained in:
parent
c0d4ed4789
commit
c46615839d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user