1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

Sanity check for text input in toggleWalking

This commit is contained in:
terrabyte25 2018-12-12 14:40:15 -06:00 committed by GitHub
parent 97aa6f58e3
commit c31fa3074e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1173,7 +1173,7 @@ namespace MWInput
void InputManager::toggleWalking()
{
if (MWBase::Environment::get().getWindowManager()->isGuiMode()) return;
if (MWBase::Environment::get().getWindowManager()->isGuiMode() || SDL_IsTextInputActive()) return;
mAlwaysRunActive = !mAlwaysRunActive;
Settings::Manager::setBool("always run", "Input", mAlwaysRunActive);