diff options
Diffstat (limited to 'web/app/view/login/LoginController.js')
-rw-r--r-- | web/app/view/login/LoginController.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/app/view/login/LoginController.js b/web/app/view/login/LoginController.js index a88fffc09..c22b0e09a 100644 --- a/web/app/view/login/LoginController.js +++ b/web/app/view/login/LoginController.js @@ -22,6 +22,10 @@ Ext.define('Traccar.view.login.LoginController', { 'Traccar.view.login.Register' ], + onAfterRender: function(field) { + field.focus(); + }, + onSpecialKey: function(field, e) { if (e.getKey() === e.ENTER) { this.doLogin(); |