1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Move alt pressed condition to top of method

This commit is contained in:
Joehu 2020-01-14 20:44:55 -08:00
parent c196e83e75
commit 2060be345d

View File

@ -412,6 +412,9 @@ namespace osu.Game.Screens.Select
protected override bool OnKeyDown(KeyDownEvent e) protected override bool OnKeyDown(KeyDownEvent e)
{ {
if (e.AltPressed)
return base.OnKeyDown(e);
int direction = 0; int direction = 0;
bool skipDifficulties = false; bool skipDifficulties = false;
@ -436,7 +439,7 @@ namespace osu.Game.Screens.Select
break; break;
} }
if (direction == 0 || e.AltPressed) if (direction == 0)
return base.OnKeyDown(e); return base.OnKeyDown(e);
SelectNext(direction, skipDifficulties); SelectNext(direction, skipDifficulties);