Commit b2d2d278 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Omit the colon in the accessible name of the input fields

Some screenreaders read the ":" if the field is required or if the
input is not valid. Setting an accessible name without the trailing
colon avoids this.

GnuPG-bug-id: 5916
parent ea6da658
......@@ -84,6 +84,7 @@ public:
{
ui.nameInput = FormTextInput<QLineEdit>::create(q);
ui.nameInput->label()->setText(i18nc("@label", "Name:"));
ui.nameInput->setAccessibleName(i18nc("@label without colon for assistive tools", "Name"));
ui.nameInput->setIsRequired(nameIsRequired);
ui.nameInput->setValueRequiredErrorMessage(i18n("Error: The name is required."));
const auto regexp = config.readEntry("NAME_regex");
......@@ -119,6 +120,7 @@ public:
{
ui.emailInput = FormTextInput<QLineEdit>::create(q);
ui.emailInput->label()->setText(i18nc("@label", "Email:"));
ui.emailInput->setAccessibleName(i18nc("@label without colon for assistive tools", "Email"));
ui.emailInput->setIsRequired(emailIsRequired);
ui.emailInput->setValueRequiredErrorMessage(i18n("Error: The email address is required."));
const auto regexp = config.readEntry(QLatin1String("EMAIL_regex"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment