_accessibility_currently_highlighted_obj = obj;
}
- if (visible)
+ if (elm_widget_access_highlight_in_theme_get(target))
{
- if (elm_widget_access_highlight_in_theme_get(target))
- elm_widget_signal_emit(target, "elm,action,access_highlight,show", "elm");
+ if (visible)
+ {
+ elm_widget_signal_emit(target, "elm,action,access_highlight,show", "elm");
+ }
else
- _elm_win_object_set_accessibility_highlight(win, target);
+ {
+ elm_widget_signal_emit(target, "elm,action,access_highlight,hide", "elm");
+ }
}
else
{
- if (elm_widget_access_highlight_in_theme_get(target))
- elm_widget_signal_emit(target, "elm,action,access_highlight,hide", "elm");
- else
- _elm_win_object_set_accessibility_highlight(win, NULL);
+ _elm_win_object_set_accessibility_highlight(win, target, visible);
}
-
}
//
void _elm_win_focus_auto_show(Evas_Object *obj);
void _elm_win_focus_auto_hide(Evas_Object *obj);
//TIZEN_ONLY(20160404) Accessibility Highlight Frame added (99248ce)
-void _elm_win_object_set_accessibility_highlight(Evas_Object *win, Evas_Object *obj);
+void _elm_win_object_set_accessibility_highlight(Evas_Object *win, Evas_Object *obj, Eina_Bool visible);
//
void *_elm_object_accessibility_currently_highlighted_get();
}
void
-_elm_win_object_set_accessibility_highlight(Evas_Object *win, Evas_Object *obj)
+_elm_win_object_set_accessibility_highlight(Evas_Object *win, Evas_Object *obj, Eina_Bool visible)
{
if (!win) return;
ELM_WIN_DATA_GET(win, sd);
- _elm_win_accessibility_highlight_hide(win);
- _elm_win_accessibility_highlight_callbacks_del(sd);
- if (obj)
+ if (visible || sd->accessibility_highlight.cur.target == obj)
{
- _elm_win_accessibility_highlight_init(sd, obj);
- _elm_win_accessibility_highlight_show(win);
+ _elm_win_accessibility_highlight_hide(win);
+ _elm_win_accessibility_highlight_callbacks_del(sd);
}
- else
+
+ if (visible)
{
- _elm_win_accessibility_highlight_hide(win);
+ _elm_win_accessibility_highlight_init(sd, obj);
+ _elm_win_accessibility_highlight_show(win);
}
}