mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Return focus when using UP/DOWN on unfocused meter
This commit is contained in:
@ -338,9 +338,13 @@ namespace osu.Game.Overlays.Volume
|
|||||||
|
|
||||||
public bool OnPressed(GlobalAction action)
|
public bool OnPressed(GlobalAction action)
|
||||||
{
|
{
|
||||||
if (!IsHovered || !isFocused)
|
if (!IsHovered)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Grab back focus is UP/DOWN input is directed at this meter
|
||||||
|
if (!isFocused)
|
||||||
|
RequestFocus?.Invoke(this);
|
||||||
|
|
||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
case GlobalAction.SelectPrevious:
|
case GlobalAction.SelectPrevious:
|
||||||
|
Reference in New Issue
Block a user