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

Return focus when using UP/DOWN on unfocused meter

This commit is contained in:
Derrick Timmermans 2021-07-04 15:42:26 +02:00
parent d0707079b1
commit 50c9e17e52
No known key found for this signature in database
GPG Key ID: 8681B60806EF4A17

View File

@ -338,9 +338,13 @@ namespace osu.Game.Overlays.Volume
public bool OnPressed(GlobalAction action)
{
if (!IsHovered || !isFocused)
if (!IsHovered)
return false;
// Grab back focus is UP/DOWN input is directed at this meter
if (!isFocused)
RequestFocus?.Invoke(this);
switch (action)
{
case GlobalAction.SelectPrevious: