1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Fix osu! logo being clicked when exiting via cmd-q on initial state

This commit is contained in:
Joseph Madamba 2022-03-30 21:26:30 -07:00
parent d17cf0631f
commit 36c02573a8

View File

@ -207,6 +207,9 @@ namespace osu.Game.Screens.Menu
protected override bool OnKeyDown(KeyDownEvent e)
{
if (e.Repeat || e.ControlPressed || e.ShiftPressed || e.AltPressed || e.SuperPressed)
return false;
if (State == ButtonSystemState.Initial)
{
if (buttonsTopLevel.Any(b => e.Key == b.TriggerKey))