gnome-shell/js/ui/components
Jonas Dreßler a35f9a5226 polkitAgent: Only set key focus to password entry after opening dialog
Set the key focus to the password field only after we got a request
(and therefore know that a password is requested) instead of using
`setInitialKeyFocus()`. This way we don't try to focus the password
field by default if we aren't showing it (e.g. in case the user has no
password or is using fingerprint login).

Also we have to move the call to `grab_key_focus()` to happen after
`_ensureOpen()`, because otherwise the ModalDialog will set the focus to
one of the buttons while opening itself.

Cherry-picked from commit 70203b58ca.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2066
2019-12-25 12:56:46 +01:00
..
__init__.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
automountManager.js cleanup: Remove trailing spaces 2019-09-15 16:02:45 +02:00
autorunManager.js cleanup: Remove trailing spaces 2019-09-15 16:02:45 +02:00
keyring.js animation: Turn Spinner animate parameter into Params option 2019-11-19 23:25:29 +02:00
networkAgent.js networkAgent: add support for SAE secrets 2019-10-07 22:44:39 +02:00
polkitAgent.js polkitAgent: Only set key focus to password entry after opening dialog 2019-12-25 12:56:46 +01:00
telepathyClient.js cleanup: Remove trailing spaces 2019-09-15 16:02:45 +02:00