From 2060be345d43a558926ad0d8edbe41efb423989b Mon Sep 17 00:00:00 2001 From: Joehu Date: Tue, 14 Jan 2020 20:44:55 -0800 Subject: [PATCH] Move alt pressed condition to top of method --- osu.Game/Screens/Select/BeatmapCarousel.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/Select/BeatmapCarousel.cs b/osu.Game/Screens/Select/BeatmapCarousel.cs index da01ac5f95..49c7381f90 100644 --- a/osu.Game/Screens/Select/BeatmapCarousel.cs +++ b/osu.Game/Screens/Select/BeatmapCarousel.cs @@ -412,6 +412,9 @@ namespace osu.Game.Screens.Select protected override bool OnKeyDown(KeyDownEvent e) { + if (e.AltPressed) + return base.OnKeyDown(e); + int direction = 0; bool skipDifficulties = false; @@ -436,7 +439,7 @@ namespace osu.Game.Screens.Select break; } - if (direction == 0 || e.AltPressed) + if (direction == 0) return base.OnKeyDown(e); SelectNext(direction, skipDifficulties);