Eo *bridge = data;
Eina_Bool val;
const char *ifc = eldbus_proxy_interface_get(ev->proxy);
- if (ev->name && !strcmp(ev->name, "ScreenReaderEnabled" ) &&
+
+ //TIZEN_ONLY(20220517) Enable AT-SPI by default for suppressed screen-reader
+ ELM_ATSPI_BRIDGE_DATA_GET_OR_RETURN(data, pd);
+ if (!pd->suppress_screen_reader &&
+ //
+ ev->name && !strcmp(ev->name, "ScreenReaderEnabled" ) &&
ifc && !strcmp(A11Y_DBUS_STATUS_INTERFACE, ifc))
{
if (!eina_value_get(ev->value, &val))
Eldbus_Proxy *proxy;
Eldbus_Pending *req;
+ //TIZEN_ONLY(20210416) - Suppress screen reader
+ const char *suppress = getenv("ELM_SUPPRESS_SCREEN_READER");
+ pd->suppress_screen_reader = suppress ? !!atoi(suppress) : EINA_FALSE;
+ //
+
efl_constructor(efl_super(obj, ELM_ATSPI_BRIDGE_CLASS));
elm_need_eldbus();
ERR("Could not get proxy object for %s interface", A11Y_DBUS_STATUS_INTERFACE);
goto proxy_err;
}
- if (!(req = eldbus_proxy_property_get(proxy, "ScreenReaderEnabled", _screen_reader_enabled_get, obj)))
+
+ //TIZEN_ONLY(20220517) Enable AT-SPI by default for suppressed screen-reader
+ if (!pd->suppress_screen_reader)
{
- ERR("Could not send PropertyGet request");
- goto proxy_err;
+ //
+ if (!(req = eldbus_proxy_property_get(proxy, "ScreenReaderEnabled", _screen_reader_enabled_get, obj)))
+ {
+ ERR("Could not send PropertyGet request");
+ goto proxy_err;
+ }
+ pd->pending_requests = eina_list_append(pd->pending_requests, req);
}
- pd->pending_requests = eina_list_append(pd->pending_requests, req);
+
// TIZEN_ONLY(20170516): connect to at-spi dbus based on org.a11y.Status.IsEnabled property
if (!(req = eldbus_proxy_property_get(proxy, A11Y_DBUS_ENABLED_PROPERTY, _at_spi_client_enabled_get, obj)))
{
ecore_fork_reset_callback_add(_on_fork_reset, obj);
//
- //TIZEN_ONLY(20210416) - Suppress screen reader
- const char *suppress = getenv("ELM_SUPPRESS_SCREEN_READER");
- pd->suppress_screen_reader = suppress ? !!atoi(suppress) : EINA_FALSE;
- //
-
return obj;
proxy_err: