//for accessibility
if(elm_atspi_bridge_utils_is_screen_reader_enabled())
{
- rsd->is_read_description = EINA_TRUE;
- elm_atspi_accessible_name_cb_set(rsd->event_area_access_object, _accessibility_name_set_cb, (Eext_Rotary_Selector_Data*)rsd);
- elm_atspi_accessible_description_cb_set(rsd->event_area_access_object, _accessibility_description_set_cb, (Eext_Rotary_Selector_Data*)rsd);
- elm_atspi_accessible_reading_info_type_set(rsd->event_area_access_object, ELM_ACCESSIBLE_READING_INFO_TYPE_NAME | ELM_ACCESSIBLE_READING_INFO_TYPE_DESCRIPTION);
-
if(!_rotary_selector_from_moreoption_get(rsd->rotary_selector))
elm_atspi_component_highlight_grab(rsd->event_area_access_object);
}
// for accessibility
evas_object_smart_callback_add(rotary_selector, "atspi,screen,reader,changed", _rotary_selector_screen_reader_changed, rsd);
- _rotary_selector_from_moreoption_set(rotary_selector, EINA_FALSE);
if (elm_atspi_bridge_utils_is_screen_reader_enabled())
{
rsd->event_area_access_object = elm_access_object_register(rsd->event_area, rsd->rotary_selector);
elm_access_action_cb_set(rsd->event_area_access_object, ELM_ACCESS_ACTION_HIGHLIGHT_NEXT, _accessibility_event_area_highlighted_cb, (Eext_Rotary_Selector_Data*)rsd);
elm_access_action_cb_set(rsd->event_area_access_object, ELM_ACCESS_ACTION_HIGHLIGHT_PREV, _accessibility_event_area_highlighted_cb, (Eext_Rotary_Selector_Data*)rsd);
}
+ _rotary_selector_from_moreoption_set(rotary_selector, EINA_FALSE);
//
return rotary_selector;
}
{
case ELM_ACCESS_ACTION_UNHIGHLIGHT:
rsd->is_event_area_highlighted = EINA_FALSE;
+ rsd->is_read_description = EINA_FALSE;
break;
case ELM_ACCESS_ACTION_HIGHLIGHT:
if (rsd->is_read_description)
int first_index = 0;
int last_index = 0;
- rsd->is_read_description = EINA_FALSE;
rsd->reading_page_number = current_page;
elm_atspi_accessible_description_cb_set(rsd->event_area_access_object, _accessibility_description_set_cb, (Eext_Rotary_Selector_Data*)rsd);
elm_atspi_accessible_reading_info_type_set(rsd->event_area_access_object, ELM_ACCESSIBLE_READING_INFO_TYPE_DESCRIPTION);
Evas_Object *button = item->base.obj;
elm_atspi_accessible_can_highlight_set(button, EINA_TRUE);
}
-
rsd->is_read_description = EINA_TRUE;
elm_atspi_accessible_name_cb_set(rsd->event_area_access_object, _accessibility_name_set_cb, (Eext_Rotary_Selector_Data*)rsd);
elm_atspi_accessible_description_cb_set(rsd->event_area_access_object, _accessibility_description_set_cb, (Eext_Rotary_Selector_Data*)rsd);
Eext_Rotary_Selector_Data *rsd = _eext_rotary_selector_data_get(rotary_selector);
if(rsd)
- rsd->from_moreoption = from_more_option;
+ {
+ rsd->from_moreoption = from_more_option;
+ if (rsd->from_moreoption)
+ elm_atspi_accessible_can_highlight_set(rsd->event_area_access_object, EINA_FALSE);
+ }
}
static Eina_Bool _rotary_selector_from_moreoption_get(Evas_Object *rotary_selector)