mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Derive from FocusedOverlayContainer and remove custom focus logic.
This commit is contained in:
@ -86,16 +86,6 @@ namespace osu.Game.Overlays.Mods
|
||||
}
|
||||
}
|
||||
|
||||
public override bool RequestingFocus => State == Visibility.Visible;
|
||||
|
||||
protected override bool OnFocus(InputState state) => true;
|
||||
protected override void OnFocusLost(InputState state)
|
||||
{
|
||||
if (state.Keyboard.Keys.Contains(Key.Escape))
|
||||
Hide();
|
||||
base.OnFocusLost(state);
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
|
Reference in New Issue
Block a user