1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:43:22 +08:00

Fix toolbar music button handling keys while not hovered

This commit is contained in:
Salman Ahmed 2022-06-16 20:22:25 +03:00
parent 42378dbb88
commit e4ddf03ad6

View File

@ -81,6 +81,9 @@ namespace osu.Game.Overlays.Toolbar
protected override bool OnKeyDown(KeyDownEvent e)
{
if (!IsHovered)
return false;
switch (e.Key)
{
case Key.Up: