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

Select all when pressing enter instead of every mod selection change

This commit is contained in:
Felipe Marins 2024-01-15 03:22:52 -03:00
parent dce9204731
commit d8962ddff8

View File

@ -565,9 +565,6 @@ namespace osu.Game.Overlays.Mods
.ToArray();
SelectedMods.Value = ComputeNewModsFromSelection(SelectedMods.Value, candidateSelection);
if (SearchTextBox.HasFocus)
SearchTextBox.SelectAll();
}
#region Transition handling
@ -724,6 +721,8 @@ namespace osu.Game.Overlays.Mods
if (firstMod is not null)
firstMod.Active.Value = !firstMod.Active.Value;
SearchTextBox.SelectAll();
return true;
}
}