authPrompt: Set accessible_name to prompt question.

This ensures screen readers read out the actual prompt (username,
password, etc). Without this Orca simply reads the username field as
"Text field", and any custom PAM prompts are unknowable.
This commit is contained in:
Mike Gerow 2021-01-13 13:51:12 -08:00
parent 8f9cc4b5c2
commit 4b416ddd10

View file

@ -376,6 +376,7 @@ var AuthPrompt = GObject.registerClass({
setQuestion(question) {
this._entry.hint_text = question;
this._entry.set_accessible_name(question);
this._entry.show();
this._entry.grab_key_focus();