not know ctxpopup, popup as its child object in the focus_next();.
SVN revision: 83884
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
Evas_Object *obj = eo_add(MY_CLASS, parent);
eo_unref(obj);
+
+ /* access: parent could be any object such as elm_list which does
+ not know elc_ctxpopup as its child object in the focus_next(); */
+ Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ wd->highlight_root = EINA_TRUE;
+
return obj;
}
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
Evas_Object *obj = eo_add(MY_CLASS, parent);
eo_unref(obj);
+
+ /* access: parent could be any object such as elm_list which does
+ not know elc_popup as its child object in the focus_next(); */
+ Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+ wd->highlight_root = EINA_TRUE;
+
return obj;
}
EAPI void
_elm_access_highlight_cycle(Evas_Object *obj, Elm_Focus_Direction dir)
{
+ Elm_Widget_Smart_Data *wd;
+ Evas_Object *ho;
+ ho = _access_highlight_object_get(obj);
+
+ /* find highlight root */
+ do
+ {
+ wd = eo_data_get(ho, ELM_OBJ_WIDGET_CLASS);
+ if (wd->highlight_root)
+ {
+ /* change highlight root */
+ obj = ho;
+ break;
+ }
+ ho = elm_widget_parent_get(ho);
+ }
+ while (ho);
+
_elm_access_read_mode_set(EINA_TRUE);
elm_widget_focus_cycle(obj, dir);
_elm_access_read_mode_set(EINA_FALSE);
Eina_Bool still_in : 1;
Eina_Bool can_access : 1;
Eina_Bool highlighted : 1;
+ Eina_Bool highlight_root : 1;
Eina_Bool orientation_disabled : 1;
} Elm_Widget_Smart_Data;