This commit is contained in:
Alayan-stk-2 2018-06-19 21:50:20 +02:00 committed by Deve
parent b430a0e5bf
commit e7f3f2b969

View File

@ -616,6 +616,9 @@ int EventHandler::findIDClosestWidget(const NavigationDirection nav, const int p
closest_wrapping_widget_id;
Widget* w_test = GUIEngine::getWidget(closest_id);
if (w_test == NULL)
return -1;
// If the newly found focus target is invisible, or not activated,
// it is not a good target, search again
// This allows to skip over disabled/invisible widgets in a grid