atspi : Do not send signal, if current object and highlight object are same 27/156827/4
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 20 Oct 2017 05:28:18 +0000 (14:28 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 23 Oct 2017 01:28:39 +0000 (01:28 +0000)
Change-Id: I3ef37909e674496be0b96beee33a5b5b75c1abac

src/lib/elm_widget.c

index 7cae3609015f3e26aebed0a852bda65fd7b9fe15..0f776461554f0695f4cc51037a87c9b87ea2d4db 100644 (file)
@@ -6592,6 +6592,10 @@ _elm_widget_elm_interface_atspi_component_highlight_grab(Eo *obj, Elm_Widget_Sma
    if(!obj) return EINA_FALSE;
    if(!_elm_atspi_enabled())
       return EINA_FALSE;
+   // TIZEN_ONLY(20171020) : atspi : Do not send signal, if current object and highlight object are same
+   if (_elm_object_accessibility_currently_highlighted_get() == obj)
+      return EINA_FALSE;
+   //
 
    //TIZEN_ONLY(20171011) : atspi : During the highlight grab, out signal is not sent.
    _elm_widget_accessibility_highlight_grabbing_set(obj, EINA_TRUE);
@@ -7160,6 +7164,11 @@ _elm_widget_item_elm_interface_atspi_component_highlight_grab(Eo *obj, Elm_Widge
 {
    if (!sd) return EINA_FALSE;
    if (!sd->view) return EINA_FALSE;
+   // TIZEN_ONLY(20171020) : atspi : Do not send signal, if current object and highlight object are same
+   if (_elm_object_accessibility_currently_highlighted_get() == obj)
+      return EINA_FALSE;
+   //
+
    //TIZEN_ONLY(20171011) : atspi : During the highlight grab, out signal is not sent.
    _elm_widget_accessibility_highlight_grabbing_set(obj, EINA_TRUE);
    //