1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

No longer keep menu open when CTRL is held

This commit is contained in:
Jonas Brandstötter 2024-05-04 16:00:22 +02:00
parent e0e7e123bf
commit 21917218ce
No known key found for this signature in database
GPG Key ID: DF758C8A6271E098

View File

@ -2,9 +2,8 @@
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Input;
using osu.Framework.Graphics;
using osuTK;
namespace osu.Game.Graphics.UserInterface
@ -20,15 +19,8 @@ namespace osu.Game.Graphics.UserInterface
protected override TextContainer CreateTextContainer() => new ToggleTextContainer(Item);
private InputManager inputManager = null!;
public override bool CloseMenuOnClick => !inputManager.CurrentState.Keyboard.ControlPressed;
protected override void LoadComplete()
{
base.LoadComplete();
inputManager = GetContainingInputManager();
}
private partial class ToggleTextContainer : TextContainer