1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

Merge pull request #2077 from terabyte25/patch-14

Sanity check for text input in toggleWalking
This commit is contained in:
Bret Curtis 2018-12-13 14:29:41 +01:00 committed by GitHub
commit 708a4f85ce
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);