1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-30 10:41:34 +00:00

Only restore focus to widgets with visible parents

This commit is contained in:
Evil Eye 2021-11-07 21:12:15 +01:00
parent 3f48d67d8e
commit 9394cdde22
2 changed files with 2 additions and 1 deletions

View file

@ -17,6 +17,7 @@
Bug #5100: Persuasion doesn't always clamp the resulting disposition
Bug #5120: Scripted object spawning updates physics system
Bug #5207: Loose summons can be present in scene
Bug #5377: console does not appear after using menutest in inventory
Bug #5379: Wandering NPCs falling through cantons
Bug #5453: Magic effect VFX are offset for creatures
Bug #5483: AutoCalc flag is not used to calculate spells cost

View file

@ -79,7 +79,7 @@ void KeyboardNavigation::restoreFocus(int mode)
if (found != mKeyFocus.end())
{
MyGUI::Widget* w = found->second;
if (w && w->getVisible() && w->getEnabled())
if (w && w->getVisible() && w->getEnabled() && w->getInheritedVisible() && w->getInheritedEnabled())
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(found->second);
}
}