listmgr: not allow focus to scroller when there is no content 13/45613/1
authorJehun Lim <jehun.lim@samsung.com>
Mon, 10 Aug 2015 01:45:11 +0000 (10:45 +0900)
committerJehun Lim <jehun.lim@samsung.com>
Mon, 10 Aug 2015 01:48:21 +0000 (10:48 +0900)
Change-Id: I1b4a9241f8f189044a547392cd05c631f39dd52b
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
src/util/listmgr.c

index 0c4269b..0b279b2 100644 (file)
@@ -507,6 +507,8 @@ bool listmgr_update_content_list(struct listmgr *lmgr, Eina_List *list)
 
        lmgr->focused = _get_box_first_item(lmgr->box);
 
+       elm_object_focus_allow_set(lmgr->scr, EINA_TRUE);
+
        return true;
 }
 
@@ -600,6 +602,8 @@ bool listmgr_draw_list_area(struct listmgr *lmgr)
 
        elm_object_focus_next_object_set(data->menu_btn, scr, ELM_FOCUS_DOWN);
 
+       elm_object_focus_allow_set(scr, EINA_FALSE);
+
        return true;
 }