|
|
@ -1113,7 +1113,10 @@ namespace MWInput
|
|
|
|
void InputManager::activate()
|
|
|
|
void InputManager::activate()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (MWBase::Environment::get().getWindowManager()->isGuiMode())
|
|
|
|
if (MWBase::Environment::get().getWindowManager()->isGuiMode())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!SDL_IsTextInputActive())
|
|
|
|
MWBase::Environment::get().getWindowManager()->injectKeyPress(MyGUI::KeyCode::Return, 0);
|
|
|
|
MWBase::Environment::get().getWindowManager()->injectKeyPress(MyGUI::KeyCode::Return, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (mControlSwitch["playercontrols"])
|
|
|
|
else if (mControlSwitch["playercontrols"])
|
|
|
|
mPlayer->activate();
|
|
|
|
mPlayer->activate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|