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

@ -615,6 +615,9 @@ int EventHandler::findIDClosestWidget(const NavigationDirection nav, const int p
int closest_id = (smallest_distance < BIG_DISTANCE) ? closest_widget_id :
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