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:
parent
d0707079b1
commit
50c9e17e52
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user