bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=803fddea5dbbcb4fd784e0dece482040fb496cc7

commit 803fddea5dbbcb4fd784e0dece482040fb496cc7
Author: Marcel Hollerbach <mar...@osg.samsung.com>
Date:   Thu Apr 12 18:07:36 2018 +0200

    efl_ui_focus_manager_calc: do not redirect requested calls
    
    this is not documented and does not make sense.
---
 src/lib/elementary/efl_ui_focus_manager_calc.c | 17 ++++++-----------
 src/lib/elementary/elm_main.c                  |  2 +-
 2 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c 
b/src/lib/elementary/efl_ui_focus_manager_calc.c
index edd4305be2..3e2292c92a 100644
--- a/src/lib/elementary/efl_ui_focus_manager_calc.c
+++ b/src/lib/elementary/efl_ui_focus_manager_calc.c
@@ -1468,20 +1468,15 @@ 
_efl_ui_focus_manager_calc_efl_ui_focus_manager_request_move(Eo *obj, Efl_Ui_Foc
    Node *child_node;
    EINA_SAFETY_ON_FALSE_RETURN_VAL(DIRECTION_CHECK(direction), NULL);
 
-   if (pd->redirect)
-     return efl_ui_focus_manager_request_move(pd->redirect, direction, NULL, 
logical);
+   if (!child)
+     child_node = eina_list_last_data_get(pd->focus_stack);
    else
-     {
-        if (!child)
-          child_node = eina_list_last_data_get(pd->focus_stack);
-        else
-          child_node = node_get(obj, pd, child);
+     child_node = node_get(obj, pd, child);
 
-        if (!child_node)
-          return NULL;
+   if (!child_node)
+     return NULL;
 
-        return _request_move(obj, pd, direction, child_node, logical);
-     }
+   return _request_move(obj, pd, direction, child_node, logical);
 }
 
 static int
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index baaa157987..fec321e746 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -1665,7 +1665,7 @@ elm_object_focus_next_object_get(const Evas_Object  *obj,
    Efl_Ui_Widget *top = elm_object_top_widget_get(obj);
    EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
 
-   return efl_ui_focus_manager_request_move(top, dir, NULL, EINA_FALSE);
+   return 
efl_ui_focus_manager_request_move(efl_ui_focus_util_active_manager(EFL_UI_FOCUS_UTIL_CLASS,
 top), dir, NULL, EINA_FALSE);
 }
 
 EAPI void

-- 


Reply via email to