mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Add allow_close[]
element to formspecs (#15971)
This commit is contained in:
@@ -148,6 +148,10 @@ bool MyEventReceiver::OnEvent(const SEvent &event)
|
||||
}
|
||||
fullscreen_is_down = event.KeyInput.PressedDown;
|
||||
return true;
|
||||
} else if (keyCode == EscapeKey &&
|
||||
event.KeyInput.PressedDown && event.KeyInput.Control) {
|
||||
g_gamecallback->disconnect();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user