mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Formspecs: volume and key settings windows can now be closed by doubleclicking/tapping (#10128)
Co-authored-by: Xx_Crazyminer_xX <carlo.digioia@hotmail.it> Co-authored-by: Marco <4279489-marco_a@users.noreply.gitlab.com>
This commit is contained in:
parent
4b4513a67d
commit
cfaef5b1cf
10 changed files with 119 additions and 130 deletions
|
@ -171,7 +171,7 @@ bool GUIVolumeChange::OnEvent(const SEvent& event)
|
|||
if (event.GUIEvent.EventType == gui::EGET_ELEMENT_FOCUS_LOST
|
||||
&& isVisible()) {
|
||||
if (!canTakeFocus(event.GUIEvent.Element)) {
|
||||
dstream << "GUIMainMenu: Not allowing focus change."
|
||||
infostream << "GUIVolumeChange: Not allowing focus change."
|
||||
<< std::endl;
|
||||
// Returning true disables focus change
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue