mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 18:47:27 +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)
|
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;
|
int direction = 0;
|
||||||
bool skipDifficulties = false;
|
bool skipDifficulties = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user