accessibility/source/standard/vclxaccessibleedit.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit b1c0169fa7079d1701625ce4f05d871093b482fc Author: Samuel Thibault <sthiba...@hypra.fr> Date: Tue Feb 20 13:55:53 2018 +0100 tdf#86661 a11y: give ROLE_LABEL to read-only edit ROLE_TEXT is for editable text, ROLE_LABEL should be used for static text, so that screen readers know they should speak it. Change-Id: I8f781a42a2838f641ccdfe7310046d74f9faced6 Reviewed-on: https://gerrit.libreoffice.org/50052 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> (cherry picked from commit fa775ed30ad8969dacca34ddb63b76a89d8ba7da) Reviewed-on: https://gerrit.libreoffice.org/50099 diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx index 4a85ab8797f1..c5a894e4e3ec 100644 --- a/accessibility/source/standard/vclxaccessibleedit.cxx +++ b/accessibility/source/standard/vclxaccessibleedit.cxx @@ -223,6 +223,8 @@ sal_Int16 VCLXAccessibleEdit::getAccessibleRole( ) VclPtr< Edit > pEdit = GetAs< Edit >(); if ( pEdit && ( ( pEdit->GetStyle() & WB_PASSWORD ) || pEdit->GetEchoChar() ) ) nRole = AccessibleRole::PASSWORD_TEXT; + else if ( pEdit && ( pEdit->GetStyle() & WB_READONLY ) ) + nRole = AccessibleRole::LABEL; else nRole = AccessibleRole::TEXT; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits