[Screen-Reader]: Disabled state not being read for any widget issue fix. 60/77760/1
authorShilpa Singh <shilpa.singh@samsung.com>
Fri, 1 Jul 2016 04:16:49 +0000 (09:46 +0530)
committerShilpa Singh <shilpa.singh@samsung.com>
Fri, 1 Jul 2016 04:16:49 +0000 (09:46 +0530)
According to Basic Rule of Access UX, disabled states should be read.

Change-Id: I8c709075860d3c28177114ecbdeeb30415b44bf2
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
res/po/en_US.po
src/navigator.c

index 5ee8fc039e5427be9b3128c1436c9d229b53245e..72d2cc42fc4bd43a82f1b9e90cf2ab131d22b81b 100644 (file)
@@ -88,6 +88,9 @@ msgstr "double tap to close it"
 msgid "IDS_TRAIT_TEXT_EDIT_FOCUSED"
 msgstr "Editing"
 
+msgid "IDS_TRAIT_DISABLED"
+msgstr "Disabled"
+
 msgid "IDS_DELETED"
 msgstr "Deleted"
 
index 35cb852e95f7b2b5c4275af766cc3c42c5c62392..5584aab4590193f705e388b4c08cdfaa8185cc14 100644 (file)
@@ -863,6 +863,11 @@ static char *generate_what_to_read(AtspiAccessible * obj)
                strncat(ret, role_name, sizeof(ret) - strlen(ret) - 1);
        }
 
+       if (!_widget_has_state(obj, ATSPI_STATE_ENABLED)) {
+               strncat(ret, ", ", sizeof(ret) - strlen(ret) - 1);
+               strncat(ret, _("IDS_TRAIT_DISABLED"), sizeof(ret) - strlen(ret) - 1);
+       }
+
        DEBUG("Description:%s VALUE %d", description,read_description);
        if (description && strlen(description) > 0) {
                /* If description reading is enabled */