mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 15:27:20 +08:00
Added ability to reset all mods by pressing 1 as present on stable.
This commit is contained in:
parent
0e8517ebae
commit
9e1f2d4fbc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user