diff options
author | Samuel Thibault <sthibault@hypra.fr> | 2018-02-20 13:55:53 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-02-21 11:35:11 +0100 |
commit | fa775ed30ad8969dacca34ddb63b76a89d8ba7da (patch) | |
tree | d042692686a66108c7c25d504c51cca811a17296 | |
parent | ccadc6d4a5fab687434a0972862d49f77328c6c9 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r-- | accessibility/source/standard/vclxaccessibleedit.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx index 65f1c2817bce..17146ae2518c 100644 --- a/accessibility/source/standard/vclxaccessibleedit.cxx +++ b/accessibility/source/standard/vclxaccessibleedit.cxx @@ -218,6 +218,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; |