We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a45bf99 commit e467f13Copy full SHA for e467f13
Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
@@ -5323,8 +5323,14 @@ void CStaticFunctionDefinitions::GUIMoveToBack(CClientEntity& Entity)
5323
{
5324
CClientGUIElement& GUIElement = static_cast<CClientGUIElement&>(Entity);
5325
5326
+ bool bConsoleHadInputFocus = g_pCore->GetConsole()->IsInputActive();
5327
+
5328
// Move it to the back
5329
GUIElement.GetCGUIElement()->MoveToBack();
5330
5331
+ // Restore input focus to the console if required
5332
+ if (bConsoleHadInputFocus)
5333
+ g_pCore->GetConsole()->ActivateInput();
5334
}
5335
5336
0 commit comments