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

Prevent screen readers from reading the tool tip

The tool tip shows details about the key using an HTML table. It is not
suitable for being read by screen readers. (orca even reads all the HTML
tags.) Since Qt uses the tool tip as fallback for the accessible
description if the accessible description is empty, we have to set a
non-empty accessible description to prevent Qt from doing so.

Alternatively, we could set an accessible description giving details
about the key suitable for screen readers, but the value of the combo
box already gives more than enough details.

GnuPG-bug-id: 6046
parent 9db5941e
Pipeline #217213 passed with stage
in 2 minutes and 18 seconds
......@@ -447,6 +447,9 @@ KeySelectionCombo::KeySelectionCombo(bool secretOnly, QWidget *parent)
: QComboBox(parent)
, d(new KeySelectionComboPrivate(this))
// set a non-empty string as accessible description to prevent screen readers
// from reading the tool tip which isn't meant for screen readers
setAccessibleDescription(QStringLiteral(" "));
d->model = Kleo::AbstractKeyListModel::createFlatKeyListModel(this);
d->secretOnly = secretOnly;
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