elm_scroller: focus_direction should not be called when scroller focusable and no focusable child

Summary:
when scroller can have focus and scroller's child can't have focus,
there is a problem that scroller is always selected to next focus object.
In this case, it should not enter into _elm_scroller_elm_widget_focus_direction()

Reviewers: woohyun

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5085
This commit is contained in:
Jeonghyun Yun 2017-08-11 13:55:22 +09:00 committed by WooHyun Jung
parent 5c0fc3f2f3
commit c208e1b8bf
1 changed files with 4 additions and 1 deletions

View File

@ -487,8 +487,11 @@ _elm_scroller_elm_widget_focus_next(Eo *obj EINA_UNUSED, Elm_Scroller_Data *sd,
}
EOLIAN static Eina_Bool
_elm_scroller_elm_widget_focus_direction_manager_is(Eo *obj EINA_UNUSED, Elm_Scroller_Data *_pd EINA_UNUSED)
_elm_scroller_elm_widget_focus_direction_manager_is(Eo *obj, Elm_Scroller_Data *_pd EINA_UNUSED)
{
if (!elm_widget_child_can_focus_get(obj))
return EINA_FALSE;
return EINA_TRUE;
}