|
|
@ -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)
|
|
|
|
{
|
|
|
|
{
|
|
|
|