Allow changing volume in song select with arrow keys when press… (#7528)

Allow changing volume in song select with arrow keys when pressing alt
This commit is contained in:
Dean Herbert
2020-01-15 15:12:23 +09:00
committed by GitHub

View File

@ -412,6 +412,12 @@ namespace osu.Game.Screens.Select
protected override bool OnKeyDown(KeyDownEvent e)
{
// allow for controlling volume when alt is held.
// this is required as the VolumeControlReceptor uses OnPressed, which is
// executed after all OnKeyDown events.
if (e.AltPressed)
return base.OnKeyDown(e);
int direction = 0;
bool skipDifficulties = false;