mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-26 15:39:51 +00:00
Disable Activate key when textinput is active (Bug #4151)
This commit is contained in:
parent
3b9e1e8c1b
commit
dc016059c3
@ -1113,7 +1113,10 @@ namespace MWInput
|
||||
void InputManager::activate()
|
||||
{
|
||||
if (MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||
MWBase::Environment::get().getWindowManager()->injectKeyPress(MyGUI::KeyCode::Return, 0);
|
||||
{
|
||||
if (!SDL_IsTextInputActive())
|
||||
MWBase::Environment::get().getWindowManager()->injectKeyPress(MyGUI::KeyCode::Return, 0);
|
||||
}
|
||||
else if (mControlSwitch["playercontrols"])
|
||||
mPlayer->activate();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user