1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-14 01:19:59 +00:00

Don't restore focus to hidden/unrelated buttons

This commit is contained in:
Evil Eye 2020-12-25 13:03:09 +01:00
parent a4f6448f34
commit bdcbb412a5

View File

@ -67,7 +67,7 @@ void KeyboardNavigation::saveFocus(int mode)
{
mKeyFocus[mode] = focus;
}
else
else if(shouldAcceptKeyFocus(mCurrentFocus))
{
mKeyFocus[mode] = mCurrentFocus;
}