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>
This commit is contained in:
committed by
Samuel Mehrbrodt
parent
ccadc6d4a5
commit
fa775ed30a
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user