mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-03 23:37:59 +03:00
Sanity check for text input in toggleWalking
This commit is contained in:
parent
97aa6f58e3
commit
c31fa3074e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue