Home GnuPG

qt: Do not set accessible description of buttons

Description

qt: Do not set accessible description of buttons

* qt/pinentrydialog.cpp (PinEntryDialog::setOkText,
PinEntryDialog::setCancelText): Do not set accessible description.

It makes no sense to set the button text also as accessible description.
If screen readers read the description, then they read the same text
twice. Moreover, if the text contains an '&' for marking a keyboard
accelerator, then this '&' is spoken literally at least by NVDA. (Qt
removes the '&' from the text when used as accessible name.)

Details

Provenance
ikloeckerAuthored on Aug 23 2022, 5:54 PM
Parents
rP338961541fa9: Release 1.2.1
Branches
Unknown
Tags
Unknown
Tasks
T5863: pinentry-qt: Further improve the accessibility