efl_ui_focus_manager_calc: do not redirect requested calls

this is not documented and does not make sense.
This commit is contained in:
Marcel Hollerbach 2018-04-12 18:07:36 +02:00
parent 9d5a9cf2e1
commit 803fddea5d
2 changed files with 7 additions and 12 deletions

View File

@ -1468,20 +1468,15 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_request_move(Eo *obj, Efl_Ui_Foc
Node *child_node; Node *child_node;
EINA_SAFETY_ON_FALSE_RETURN_VAL(DIRECTION_CHECK(direction), NULL); EINA_SAFETY_ON_FALSE_RETURN_VAL(DIRECTION_CHECK(direction), NULL);
if (pd->redirect) if (!child)
return efl_ui_focus_manager_request_move(pd->redirect, direction, NULL, logical); child_node = eina_list_last_data_get(pd->focus_stack);
else else
{ child_node = node_get(obj, pd, child);
if (!child)
child_node = eina_list_last_data_get(pd->focus_stack);
else
child_node = node_get(obj, pd, child);
if (!child_node) if (!child_node)
return NULL; return NULL;
return _request_move(obj, pd, direction, child_node, logical); return _request_move(obj, pd, direction, child_node, logical);
}
} }
static int static int

View File

@ -1665,7 +1665,7 @@ elm_object_focus_next_object_get(const Evas_Object *obj,
Efl_Ui_Widget *top = elm_object_top_widget_get(obj); Efl_Ui_Widget *top = elm_object_top_widget_get(obj);
EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL); EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
return efl_ui_focus_manager_request_move(top, dir, NULL, EINA_FALSE); return efl_ui_focus_manager_request_move(efl_ui_focus_util_active_manager(EFL_UI_FOCUS_UTIL_CLASS, top), dir, NULL, EINA_FALSE);
} }
EAPI void EAPI void