Skip to content

Commit

Permalink
Sanity check for text input in toggleWalking
Browse files Browse the repository at this point in the history
  • Loading branch information
terabyte25 authored Dec 12, 2018
1 parent 97aa6f5 commit c31fa30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openmw/mwinput/inputmanagerimp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c31fa30

Please sign in to comment.