genlist: unset FOCUSABLE, HIGHLIGHTABLE for DISPLAY_ONLY item 73/274873/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 11 May 2022 07:40:27 +0000 (16:40 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 11 May 2022 07:40:27 +0000 (16:40 +0900)
Application uses the DISPLAY_ONLY item as a seperator.
This item does not have to get focus or highlight.

Change-Id: Ic49a81ea96f194cf8de44a231cd5c7df683c1249

src/lib/elementary/elm_genlist.c
src/lib/elementary_tizen/elm_genlist.c

index e67f653..b3b5c90 100644 (file)
@@ -9082,6 +9082,17 @@ _elm_genlist_item_efl_access_object_state_set_get(const Eo *eo_it, Elm_Gen_Item
             STATE_TYPE_SET(ret, EFL_ACCESS_STATE_TYPE_COLLAPSED);
      }
    //
+   //TIZEN_ONLY(20220511): Unset focusable,highlightable state for dispaly only item
+   Elm_Genlist_Data *sd = GL_IT(it)->wsd;
+   if ((sd->select_mode == ELM_OBJECT_SELECT_MODE_NONE) ||
+       (sd->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY ) ||
+       (it->select_mode == ELM_OBJECT_SELECT_MODE_NONE) ||
+       (it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY ))
+     {
+        STATE_TYPE_UNSET(ret, ELM_ATSPI_STATE_HIGHLIGHTABLE);
+        STATE_TYPE_UNSET(ret, ELM_ATSPI_STATE_FOCUSABLE);
+     }
+   //
 
    return ret;
 }
index 73184dd..6090947 100644 (file)
@@ -10631,6 +10631,18 @@ _elm_genlist_item_efl_access_object_state_set_get(const Eo *eo_it, Elm_Gen_Item
    if (it && it->itc && it->itc->item_style && strstr(it->itc->item_style, "title"))
      STATE_TYPE_SET(ret, ELM_ATSPI_STATE_READ_ONLY);
    //
+   //TIZEN_ONLY(20220511): Unset focusable,highlightable state for dispaly only item
+   Elm_Genlist_Data *sd = GL_IT(it)->wsd;
+   if ((sd->select_mode == ELM_OBJECT_SELECT_MODE_NONE) ||
+       (sd->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY ) ||
+       (it->select_mode == ELM_OBJECT_SELECT_MODE_NONE) ||
+       (it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY ))
+     {
+        STATE_TYPE_UNSET(ret, ELM_ATSPI_STATE_HIGHLIGHTABLE);
+        STATE_TYPE_UNSET(ret, ELM_ATSPI_STATE_FOCUSABLE);
+     }
+   //
+
    return ret;
 }