1
0
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:
Dean Herbert 2017-03-06 17:21:58 +09:00
parent 5ec2db6558
commit 9908c1905d
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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;