summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2016-02-23 20:46:35 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-02-23 20:46:35 +0900
commit4eca4e64c5f36933e00e87a4ae9091bda13ef7c4 (patch)
tree5130b89361bd0cac0c6683d781fa8e133ddd3488
parentdbc767453ea889a3fdb82041b7021baa14dbfae4 (diff)
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
-rw-r--r--src/lib/elm_genlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index bc505ed8c..bdcbce9a6 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)
2919 } 2919 }
2920 else 2920 else
2921 { 2921 {
2922 if (dir == ELM_FOCUS_UP) 2922 if ((sd->focused_item) && (dir == ELM_FOCUS_UP))
2923 ret = _item_single_select_up(sd); 2923 ret = _item_single_select_up(sd);
2924 else if (dir == ELM_FOCUS_DOWN) 2924 else if (dir == ELM_FOCUS_DOWN)
2925 ret = _item_single_select_down(sd); 2925 ret = _item_single_select_down(sd);