genlist: focus out by pressing "up" key when no item is selected

Summary:
move focus out of genlist by pressing "up" key when no item
is selected.

Test Plan: elementary_test -to fileselector

Reviewers: SanghyeonLee, cedric, Jaehyun_Cho, Hermet

Reviewed By: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3721
This commit is contained in:
Jee-Yong Um 2016-02-23 20:46:35 +09:00 committed by Hermet Park
parent adc17dfb97
commit 7908a9a57c
1 changed files with 1 additions and 1 deletions

View File

@ -2919,7 +2919,7 @@ _key_action_move_dir(Evas_Object *obj, Elm_Focus_Direction dir, Eina_Bool multi)
}
else
{
if (dir == ELM_FOCUS_UP)
if ((sd->focused_item) && (dir == ELM_FOCUS_UP))
ret = _item_single_select_up(sd);
else if (dir == ELM_FOCUS_DOWN)
ret = _item_single_select_down(sd);