1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 05:22:54 +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) protected override bool OnKeyDown(KeyDownEvent e)
{ {
if (!IsHovered)
return false;
switch (e.Key) switch (e.Key)
{ {
case Key.Up: case Key.Up: