polkitAgent: Do not set initial focus in the password entry
The password entry can be hidden if the user has no password set, but setting the initial focus to it will result in the entry responding to the "activate" and signals. Besides, with the logic that the dialog follows, setting the initial focus in the entry is redundant, because the focus is also set in the entry upon showing it.
This commit is contained in:
parent
903036e244
commit
9915bad039
@ -123,7 +123,6 @@ var AuthenticationDialog = new Lang.Class({
|
|||||||
|
|
||||||
this._passwordBox.add(this._workSpinner.actor);
|
this._passwordBox.add(this._workSpinner.actor);
|
||||||
|
|
||||||
this.setInitialKeyFocus(this._passwordEntry);
|
|
||||||
this._passwordBox.hide();
|
this._passwordBox.hide();
|
||||||
|
|
||||||
this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label' });
|
this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label' });
|
||||||
|
Loading…
Reference in New Issue
Block a user