Home GnuPG

qt: Make the generate password action accessible

Description

qt: Make the generate password action accessible

* qt/pinentrydialog.h (PinEntryDialog): Remove unused field mGenerateTT.
Remove field mGenerateActionEdit. Add field mGenerateButton.
* qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
new field. Set up new push button.
(PinEntryDialog::setGenpinLabel): Set accessible name and update
visibility of new push button.
(PinEntryDialog::setGenpinLabel): Set tooltip of new push button.
(PinEntryDialog::setGenpinLabel): Update visibility of new push button.
(PinEntryDialog::generatePin): Focus password input field.

This change makes the "Generate password" functionality accessible
via keyboard and screen reader.

Details

Provenance
ikloeckerAuthored on Aug 10 2021, 11:52 AM
Parents
rP8acf47ea46a6: qt: Improve accessibility when entering new password
Branches
Unknown
Tags
Unknown
Tasks
T5543: pinentry-qt: Accessibility switch to repeat on enter