From 625c54b7eca1c12f5d95b3ae9d2374315abc0c2b Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Sun, 30 Oct 2016 14:08:14 -0700 Subject: Add focus to password field. --- ui/app/first-time/init-menu.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/app/first-time') diff --git a/ui/app/first-time/init-menu.js b/ui/app/first-time/init-menu.js index bd6541dd4..b1155e2f6 100644 --- a/ui/app/first-time/init-menu.js +++ b/ui/app/first-time/init-menu.js @@ -144,6 +144,10 @@ InitializeMenuScreen.prototype.createVaultOnEnter = function (event) { } } +InitializeMenuScreen.prototype.componentDidMount = function () { + document.getElementById('password-box').focus() +} + InitializeMenuScreen.prototype.createNewVault = function () { var passwordBox = document.getElementById('password-box') var password = passwordBox.value -- cgit