1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 21:15:33 +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;
}