diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index bd05526d6..535814440 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -100,7 +100,6 @@ var AuthenticationDialog = GObject.registerClass({ }); this._passwordBox.add(this._workSpinner.actor); - this.setInitialKeyFocus(this._passwordEntry); this._passwordBox.hide(); this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label' }); @@ -269,9 +268,10 @@ var AuthenticationDialog = GObject.registerClass({ this._passwordBox.show(); this._passwordEntry.set_text(''); - this._passwordEntry.grab_key_focus(); this._updateSensitivity(true); + this._ensureOpen(); + this._passwordEntry.grab_key_focus(); } _onSessionShowError(session, text) {