From 445331bba8f509a415ea3f45c11aba0c0c97f674 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 9 Jul 2014 09:55:21 +0200 Subject: [PATCH] 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. --- src/declarativeimports/plasmacomponents/qml/TextField.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/TextField.qml b/src/declarativeimports/plasmacomponents/qml/TextField.qml index d5b2d3a78..5bc6b58e4 100644 --- a/src/declarativeimports/plasmacomponents/qml/TextField.qml +++ b/src/declarativeimports/plasmacomponents/qml/TextField.qml @@ -385,9 +385,8 @@ FocusScope { } } - Accessible.name: text + Accessible.name: placeholderText Accessible.role: Accessible.EditableText Accessible.readOnly: readOnly Accessible.passwordEdit: echoMode == TextInput.Password || echoMode === TextInput.PasswordEchoOnEdit - Accessible.description: placeholderText }