mirror of
https://github.com/ppy/osu.git
synced 2025-03-19 01:17:19 +08:00
Merge pull request #17568 from Joehuu/fix-logo-clicking-when-exiting
Fix osu! logo being clicked when exiting via cmd-q on initial state
This commit is contained in:
commit
538e553455
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user