Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Commit 1f97a47

Browse files
committed
[TASK] Focus on password field (DC-61)
1 parent 4c01313 commit 1f97a47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js/tabs/login.js

+3
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ LoginTab.prototype.angular = function (module) {
3232

3333
if(!!store.get('walletfile')) {
3434
$scope.walletfile = store.get('walletfile');
35+
angular.element("#login_password").focus();
3536
}
3637

3738
$scope.fileInputClick = function(element){
3839
filedialog.openFile(function(evt) {
3940
$scope.$apply(function() {
4041
store.set('walletfile', evt);
4142
$scope.walletfile = evt;
43+
angular.element("#login_password").focus();
4244
});
4345
}, false);
4446
};
@@ -72,6 +74,7 @@ LoginTab.prototype.angular = function (module) {
7274
$scope.$apply(function() {
7375
store.set('walletfile', e.dataTransfer.files[0].path);
7476
$scope.walletfile = e.dataTransfer.files[0].path;
77+
angular.element("#login_password").focus();
7578
});
7679

7780
return false;

0 commit comments

Comments
 (0)