hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=4eca4e64c5f36933e00e87a4ae9091bda13ef7c4

commit 4eca4e64c5f36933e00e87a4ae9091bda13ef7c4
Author: Jee-Yong Um <jc9...@samsung.com>
Date:   Tue Feb 23 20:46:35 2016 +0900

    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
---
 src/lib/elm_genlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index bc505ed..bdcbce9 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -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);

-- 


Reply via email to