Skip to content

Commit

Permalink
Merge pull request #6096 from frenzibyte/fix-dropdown-header-input-ha…
Browse files Browse the repository at this point in the history
…ndling

Fix dropdown header handling platform actions when not hovered
  • Loading branch information
bdach committed Jan 2, 2024
2 parents a5bcba3 + b5a9b4f commit 3eb7a68
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions osu.Framework/Graphics/UserInterface/DropdownHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,10 @@ private void updateState()
Background.Colour = IsHovered && Enabled.Value ? BackgroundColourHover : BackgroundColour;
}

public override bool HandleNonPositionalInput => IsHovered;

protected override bool OnKeyDown(KeyDownEvent e)
{
if (!IsHovered)
return false;

if (!Enabled.Value)
return true;

Expand Down

0 comments on commit 3eb7a68

Please sign in to comment.