Chromium Code Reviews| Index: ui/login/account_picker/user_pod_row.js |
| diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js |
| index c258be189f92761f2b8efd3a592195be78f04b0a..82be26187e827280e2e8dd6d2537c08ed282539c 100644 |
| --- a/ui/login/account_picker/user_pod_row.js |
| +++ b/ui/login/account_picker/user_pod_row.js |
| @@ -1137,6 +1137,9 @@ cr.define('login', function() { |
| currentElement.classList.toggle('pin-enabled', visible); |
| currentElement.classList.toggle('pin-disabled', !visible); |
| } |
| + |
| + // Set the focus to the input element after showing/hiding pin keyboard. |
| + visible ? this.pinKeyboard.focus() : this.passwordElement.focus(); |
|
xiyuan
2016/07/07 20:01:40
nit: this.passwordElement.focus() -> this.mainInpu
jdufault
2016/07/07 20:46:50
Can you make this a regular if/else?
if (visibl
sammiequon
2016/07/08 00:21:20
Done.
sammiequon
2016/07/08 00:21:20
Done.
sammiequon
2016/07/08 00:21:20
Done.
|
| }, |
| setUserPodIconType: function(userTypeClass) { |