From 3a1e3cf0f5c824d220f02eefe76a6202bcf26b44 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 27 Aug 2019 15:23:12 +0300 Subject: [PATCH] [Client] Prevent chat key from switching to chat window while in console --- apps/openmw/mwmp/GUIController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmp/GUIController.cpp b/apps/openmw/mwmp/GUIController.cpp index 775a1775c..574303b06 100644 --- a/apps/openmw/mwmp/GUIController.cpp +++ b/apps/openmw/mwmp/GUIController.cpp @@ -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) {