forked from enlightenment/efl
[access] make access object unfocusable, when accessibility is disabled
This commit is contained in:
parent
56592f3778
commit
1a20353725
|
@ -1268,3 +1268,7 @@
|
||||||
2013-04-18 Shinwoo Kim
|
2013-04-18 Shinwoo Kim
|
||||||
|
|
||||||
* Add elm_access_action(), elm_access_action_cb_set()
|
* Add elm_access_action(), elm_access_action_cb_set()
|
||||||
|
|
||||||
|
2013-04-22 Shinwoo Kim
|
||||||
|
|
||||||
|
* Make access object unfocusable when Aaccessibility is disabled.
|
||||||
|
|
|
@ -211,6 +211,7 @@ Fixes:
|
||||||
* Fix the calculation double type number.
|
* Fix the calculation double type number.
|
||||||
* Fix the policy is not changed when the theme is changed.
|
* Fix the policy is not changed when the theme is changed.
|
||||||
* When entry is disabled, scrolling is also disabled.
|
* When entry is disabled, scrolling is also disabled.
|
||||||
|
* Make access object unfocusable when Aaccessibility is disabled.
|
||||||
|
|
||||||
Removals:
|
Removals:
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ _elm_access_smart_add(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
|
||||||
{
|
{
|
||||||
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
|
eo_do_super(obj, MY_CLASS, evas_obj_smart_add());
|
||||||
|
|
||||||
elm_widget_can_focus_set(obj, EINA_TRUE);
|
elm_widget_can_focus_set(obj, _elm_config->access_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
|
@ -1293,6 +1293,14 @@ elm_access_external_info_get(const Evas_Object *obj)
|
||||||
return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, obj);
|
return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_elm_access_smart_access(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
||||||
|
{
|
||||||
|
Eina_Bool is_access = va_arg(*list, int);
|
||||||
|
|
||||||
|
elm_widget_can_focus_set(obj, is_access);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_class_constructor(Eo_Class *klass)
|
_class_constructor(Eo_Class *klass)
|
||||||
{
|
{
|
||||||
|
@ -1303,6 +1311,7 @@ _class_constructor(Eo_Class *klass)
|
||||||
|
|
||||||
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_FOCUS), _elm_access_smart_on_focus),
|
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_FOCUS), _elm_access_smart_on_focus),
|
||||||
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACTIVATE), _elm_access_smart_activate),
|
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACTIVATE), _elm_access_smart_activate),
|
||||||
|
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACCESS), _elm_access_smart_access),
|
||||||
|
|
||||||
EO_OP_FUNC_SENTINEL
|
EO_OP_FUNC_SENTINEL
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue