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:
parent
c196e83e75
commit
2060be345d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user