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:
parent
a9f1481e5c
commit
3a1e3cf0f5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue