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