woohyun pushed a commit to branch master.

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

commit a1566603c62a3aea4e032d161e610227e538a600
Author: WooHyun Jung <wh0705.j...@samsung.com>
Date:   Mon Aug 31 16:15:55 2015 +0900

    naviframe: fix a focus issue when deleting the first item
    
    Summary:
    When the first item is deleted, focus should not be reverted back
    to an object in the content of the item.
    
    @fix
---
 src/lib/elc_naviframe.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index c9433cc..b11eda3 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -553,7 +553,11 @@ _elm_naviframe_item_eo_base_destructor(Eo *eo_item, 
Elm_Naviframe_Item_Data *it)
         if (sd->stack && sd->stack->last)
           prev_it = EINA_INLIST_CONTAINER_GET(sd->stack->last,
                                               Elm_Naviframe_Item_Data);
-        if (!prev_it) goto end;
+        if (!prev_it)
+          {
+             elm_widget_tree_unfocusable_set(VIEW(nit), EINA_TRUE);
+             goto end;
+          }
 
         elm_widget_tree_unfocusable_set(VIEW(prev_it), EINA_FALSE);
         elm_widget_tree_unfocusable_set(VIEW(nit), EINA_TRUE);

-- 


Reply via email to