1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-27 23:39:41 +00:00

[Client] Prevent chat key from switching to chat window while in console

This commit is contained in:
David Cernat 2019-08-27 15:23:12 +03:00
parent a9f1481e5c
commit 3a1e3cf0f5

View file

@ -184,7 +184,7 @@ void mwmp::GUIController::onInputBoxDone(MWGui::WindowBase *parWindow)
bool mwmp::GUIController::pressedKey(int key)
{
MWBase::WindowManager *windowManager = MWBase::Environment::get().getWindowManager();
if (mChat == nullptr || windowManager->getMode() != MWGui::GM_None)
if (mChat == nullptr || windowManager->isConsoleMode() || windowManager->getMode() != MWGui::GM_None)
return false;
if (key == keyChatMode)
{