efl_ui_focus_manager_calc: drop redirect if there is no candidate

This commit is contained in:
Marcel Hollerbach 2018-04-30 10:51:52 +02:00
parent 139efaaba3
commit 3571b35a30
1 changed files with 8 additions and 0 deletions

View File

@ -1730,6 +1730,14 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_move(Eo *obj EINA_UNUSED, Efl_Ui
efl_ui_focus_manager_focus_set(obj, new_candidate);
adjust_redirect_manager = EINA_TRUE;
}
else
{
//we set the redirect to NULL since it cannot
//help us, later on the redirect manager can be
//set to the same again, and it is strictly new setted up.
efl_ui_focus_manager_redirect_set(obj, NULL);
pd->redirect_entry = NULL;
}
candidate = new_candidate;
}