summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoaquim Rocha <jrocha@endlessm.com>2017-07-19 14:08:20 +0200
committerJoaquim Rocha <jrocha@endlessm.com>2018-02-14 17:29:40 +0100
commit9915bad039d6c3838dfa6a7c58927946709d307f (patch)
tree707d19c94ed49bc5d7bfeca1364e1b4b529bf105
parent903036e244989cb5a66fdf19c90a397dc7460ff5 (diff)
downloadgnome-shell-jrocha/polkit-dialog-without-passwd.tar.gz
polkitAgent: Do not set initial focus in the password entryjrocha/polkit-dialog-without-passwd
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.
-rw-r--r--js/ui/components/polkitAgent.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js
index b99e472c9..4056f72e7 100644
--- a/js/ui/components/polkitAgent.js
+++ b/js/ui/components/polkitAgent.js
@@ -123,7 +123,6 @@ var AuthenticationDialog = new Lang.Class({
this._passwordBox.add(this._workSpinner.actor);
- this.setInitialKeyFocus(this._passwordEntry);
this._passwordBox.hide();
this._errorMessageLabel = new St.Label({ style_class: 'prompt-dialog-error-label' });