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
1 changed files with 11 additions and 0 deletions

View File

@ -440,8 +440,19 @@ private void promptDelete()
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;