mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Cancel beatmap random selection
This commit is contained in:
@ -158,7 +158,7 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
if (Footer != null)
|
||||
{
|
||||
Footer.AddButton(@"random", colours.Green, SelectRandom, Key.F2);
|
||||
Footer.AddButton(@"random", colours.Green, SelectRandom, Key.F2, true);
|
||||
Footer.AddButton(@"options", colours.Blue, BeatmapOptions.ToggleVisibility, Key.F3);
|
||||
|
||||
BeatmapOptions.AddButton(@"Delete", @"Beatmap", FontAwesome.fa_trash, colours.Pink, promptDelete, Key.Number4, float.MaxValue);
|
||||
@ -381,6 +381,13 @@ namespace osu.Game.Screens.Select
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case Key.F2:
|
||||
if (state.Keyboard.ShiftPressed)
|
||||
{
|
||||
carousel.CancelRandom();
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return base.OnKeyDown(state, args);
|
||||
|
Reference in New Issue
Block a user