Improve TextField accessibility
Qt Quick accessibility already picks up the text automatically. Instead set the name (which is a descriptive element) to the placeholder text which is more descriptive of the element. Otherwise Orca will read the text twice.
This commit is contained in:
parent
c29896a3a8
commit
445331bba8
@ -385,9 +385,8 @@ FocusScope {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Accessible.name: text
|
Accessible.name: placeholderText
|
||||||
Accessible.role: Accessible.EditableText
|
Accessible.role: Accessible.EditableText
|
||||||
Accessible.readOnly: readOnly
|
Accessible.readOnly: readOnly
|
||||||
Accessible.passwordEdit: echoMode == TextInput.Password || echoMode === TextInput.PasswordEchoOnEdit
|
Accessible.passwordEdit: echoMode == TextInput.Password || echoMode === TextInput.PasswordEchoOnEdit
|
||||||
Accessible.description: placeholderText
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user