mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:53:51 +00:00
Merge pull request #2077 from terabyte25/patch-14
Sanity check for text input in toggleWalking
This commit is contained in:
commit
708a4f85ce
1 changed files with 1 additions and 1 deletions
|
@ -1173,7 +1173,7 @@ namespace MWInput
|
||||||
|
|
||||||
void InputManager::toggleWalking()
|
void InputManager::toggleWalking()
|
||||||
{
|
{
|
||||||
if (MWBase::Environment::get().getWindowManager()->isGuiMode()) return;
|
if (MWBase::Environment::get().getWindowManager()->isGuiMode() || SDL_IsTextInputActive()) return;
|
||||||
mAlwaysRunActive = !mAlwaysRunActive;
|
mAlwaysRunActive = !mAlwaysRunActive;
|
||||||
|
|
||||||
Settings::Manager::setBool("always run", "Input", mAlwaysRunActive);
|
Settings::Manager::setBool("always run", "Input", mAlwaysRunActive);
|
||||||
|
|
Loading…
Reference in a new issue