elm_atspi: Consider focus in _elm_object_accessibility_should_emit_events() 46/283546/2 accepted/tizen/unified/20221118.164208
authorArtur Świgoń <a.swigon@samsung.com>
Fri, 28 Oct 2022 09:57:59 +0000 (11:57 +0200)
committerLukasz Oleksak <l.oleksak@samsung.com>
Wed, 16 Nov 2022 17:58:59 +0000 (17:58 +0000)
Change-Id: I5411b4975288294f11fcae4df81f4137126d10a1

src/lib/elementary/elm_main.c

index e4f9f8e..6014bc9 100644 (file)
@@ -2247,6 +2247,11 @@ _elm_object_accessibility_should_emit_events(Eo *obj)
    if (_elm_object_accessibility_currently_highlighted_get() == obj)
      return EINA_TRUE;
 
+   //TIZEN_ONLY(20221028): Consider focus in _elm_object_accessibility_should_emit_events()
+   if (elm_widget_focus_get(obj))
+     return EINA_TRUE;
+   //
+
    // Also check if object's controller is highlighted
    Efl_Access_Relation_Set relations = elm_atspi_accessible_relation_set_get(obj);
    Efl_Access_Relation *relation;
@@ -2265,6 +2270,11 @@ _elm_object_accessibility_should_emit_events(Eo *obj)
    if (controller && _elm_object_accessibility_currently_highlighted_get() == controller)
      return EINA_TRUE;
 
+   //TIZEN_ONLY(20221028): Consider focus in _elm_object_accessibility_should_emit_events()
+   if (controller && elm_widget_focus_get(controller))
+     return EINA_TRUE;
+   //
+
    return EINA_FALSE;
 }
 //