raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4195242c9b5bc5d28a056a7e6ffecf7dfc92f60d

commit 4195242c9b5bc5d28a056a7e6ffecf7dfc92f60d
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Feb 13 18:12:11 2018 +0900

    elm focus ... set focus in focus in if focus is not already on something
    
    let's actually set focus in focus_in on window (ecore evas) IF focus
    is not set. this seems to make terminology still work...
---
 src/lib/elementary/efl_ui_win.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 4ccea98dc0..0d899c2985 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1258,7 +1258,8 @@ _elm_win_focus_in(Ecore_Evas *ee)
    /* else if (sd->img_obj) */
    /*   { */
    /*   } */
-   if (!efl_ui_focus_manager_focus_get(sd->obj) && 
!efl_ui_focus_manager_redirect_get(sd->obj))
+   if ((!efl_ui_focus_manager_focus_get(sd->obj)) &&
+       (!efl_ui_focus_manager_redirect_get(sd->obj)))
      {
         Efl_Ui_Focus_Object *child;
 
@@ -1266,6 +1267,8 @@ _elm_win_focus_in(Ecore_Evas *ee)
 
         if (child)
           efl_ui_focus_manager_focus_set(sd->obj, sd->obj);
+        else  if (!evas_focus_get(evas_object_evas_get(sd->obj)))
+          evas_object_focus_set(obj, EINA_TRUE);
      }
 }
 

-- 


Reply via email to