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

pull/541/head
David Cernat 5 years ago
parent a9f1481e5c
commit 3a1e3cf0f5

@ -184,7 +184,7 @@ void mwmp::GUIController::onInputBoxDone(MWGui::WindowBase *parWindow)
bool mwmp::GUIController::pressedKey(int key) bool mwmp::GUIController::pressedKey(int key)
{ {
MWBase::WindowManager *windowManager = MWBase::Environment::get().getWindowManager(); 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; return false;
if (key == keyChatMode) if (key == keyChatMode)
{ {

Loading…
Cancel
Save