mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 23:07:26 +08:00
Add keyboard shortcuts at song select for mod/random/options.
This commit is contained in:
parent
5ec2db6558
commit
9908c1905d
@ -440,8 +440,19 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
if (args.Repeat) return false;
|
||||
|
||||
switch (args.Key)
|
||||
{
|
||||
case Key.F1:
|
||||
modSelect.ToggleVisibility();
|
||||
return true;
|
||||
case Key.F2:
|
||||
carousel.SelectRandom();
|
||||
return true;
|
||||
case Key.F3:
|
||||
beatmapOptions.ToggleVisibility();
|
||||
return true;
|
||||
case Key.Enter:
|
||||
footer.StartButton.TriggerClick();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user