mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Close console when it loses focus but it is still on screen
This commit is contained in:
committed by
Kahrl
parent
4f6bec19bc
commit
7cb5217255
@@ -1684,6 +1684,10 @@ void the_game(
|
||||
{
|
||||
input->clear();
|
||||
}
|
||||
if (!guienv->hasFocus(gui_chat_console) && gui_chat_console->isOpen())
|
||||
{
|
||||
gui_chat_console->closeConsoleAtOnce();
|
||||
}
|
||||
|
||||
// Input handler step() (used by the random input generator)
|
||||
input->step(dtime);
|
||||
|
Reference in New Issue
Block a user