mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Unlock cursor when opening console
This commit is contained in:
parent
effa24737d
commit
3edb7575a1
5 changed files with 26 additions and 23 deletions
|
@ -2175,7 +2175,7 @@ bool Game::initGui()
|
|||
|
||||
// Chat backend and console
|
||||
gui_chat_console = new GUIChatConsole(guienv, guienv->getRootGUIElement(),
|
||||
-1, chat_backend, client);
|
||||
-1, chat_backend, client, &g_menumgr);
|
||||
if (!gui_chat_console) {
|
||||
*error_message = "Could not allocate memory for chat console";
|
||||
errorstream << *error_message << std::endl;
|
||||
|
@ -2809,7 +2809,6 @@ void Game::openConsole(float height, const wchar_t *line)
|
|||
gui_chat_console->setCloseOnEnter(true);
|
||||
gui_chat_console->replaceAndAddToHistory(line);
|
||||
}
|
||||
guienv->setFocus(gui_chat_console);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue