mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:47:25 +08:00
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:
commit
6cb8b964fd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user