path: root/src/lib/elementary/efl_ui_win.c
diff options
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-08-30 22:33:04 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-08-30 22:39:52 +0200
commitea5b0bdfdeab75db460d4d9ccdb49b8874bcce7e (patch)
treef8ac06539934530c6dcab5b6d6d2193f900ec2db /src/lib/elementary/efl_ui_win.c
parentecore_wl2: Kill the wl idle enterer (diff)
efl_ui_focus_manager: make logical_end work better
it turns out that we should also repsect logical elements that are having a redirect_manager, since they are more at the "end" then a potential regular node. The user now needs to handle the logical_end call on this manager, or handle at all what he wants to do with this information. efl_ui_win now handles it in the way that it just focuses that logical node, (which results in the redirect manager beeing set, then calling again logical_end on that manager. Repeating this until we have finally found a regular node that does fit out needs.
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index b5a64ddd21..1b2bb361aa 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1755,10 +1755,15 @@ _key_action_move(Evas_Object *obj, const char *params)
if (!o && focus_dir == EFL_UI_FOCUS_DIRECTION_PREV)
- Efl_Ui_Focus_Object *last;
+ Efl_Ui_Focus_Manager_Logical_End_Detail last;
+ Efl_Ui_Focus_Manager *rec_manager = obj;
- last = efl_ui_focus_manager_logical_end(obj);
- efl_ui_focus_manager_focus_set(obj, last);
+ do {
+ last = efl_ui_focus_manager_logical_end(rec_manager);
+ efl_ui_focus_manager_focus_set(obj, last.element);
+ rec_manager = efl_ui_focus_manager_redirect_get(rec_manager);
+ } while (!last.is_regular_end);
return EINA_TRUE;