mirror of
https://github.com/ppy/osu.git
synced 2026-06-09 17:24:04 +08:00
Select all when pressing enter instead of every mod selection change
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user