1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 22:19:31 +08:00

Added ability to reset all mods by pressing 1 as present on stable.

This commit is contained in:
Welsar55 2019-05-21 21:48:09 -05:00
parent 0e8517ebae
commit 9e1f2d4fbc

View File

@ -57,7 +57,11 @@ namespace osu.Game.Overlays.Mods
protected override bool OnKeyDown(KeyDownEvent e)
{
if (ToggleKeys != null)
if(e.Key == Key.Number1)
{
DeselectAll();
}
else if (ToggleKeys != null)
{
var index = Array.IndexOf(ToggleKeys, e.Key);
if (index > -1 && index < buttons.Length)