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:
parent
42378dbb88
commit
e4ddf03ad6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user