1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Fix focused overlays not blocking select action

This commit is contained in:
Dean Herbert 2018-07-13 20:37:49 +09:00
parent 9d8060d5e0
commit 3308f8f823

View File

@ -69,10 +69,13 @@ namespace osu.Game.Graphics.Containers
public virtual bool OnPressed(GlobalAction action)
{
if (action == GlobalAction.Back)
switch (action)
{
State = Visibility.Hidden;
return true;
case GlobalAction.Back:
State = Visibility.Hidden;
return true;
case GlobalAction.Select:
return true;
}
return false;