mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00: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…
Reference in New Issue
Block a user