elementary/elm_scroller : When focus_next is tried on the unfocused

scroller, only scroller(not the one of the child objects) will be set
as focused. This is because scroller is focusable.


SVN revision: 67113
This commit is contained in:
WooHyun Jung 2012-01-12 04:52:44 +00:00
parent a3935da066
commit e6b37886a8
1 changed files with 5 additions and 2 deletions

View File

@ -192,8 +192,11 @@ _elm_scroller_focus_next_hook(const Evas_Object *obj, Elm_Focus_Direction dir, E
cur = wd->content;
/* Try Focus cycle in subitem */
if ((elm_widget_can_focus_get(cur)) || (elm_widget_child_can_focus_get(cur)))
return elm_widget_focus_next_get(cur, dir, next);
if (elm_widget_focus_get(obj))
{
if ((elm_widget_can_focus_get(cur)) || (elm_widget_child_can_focus_get(cur)))
return elm_widget_focus_next_get(cur, dir, next);
}
/* Return */
*next = (Evas_Object *)obj;