aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_modals/login-modal/login-modal.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/_modals/login-modal/login-modal.component.html')
-rw-r--r--frontend/src/app/_modals/login-modal/login-modal.component.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/app/_modals/login-modal/login-modal.component.html b/frontend/src/app/_modals/login-modal/login-modal.component.html
index cea6bf39..79e11db8 100644
--- a/frontend/src/app/_modals/login-modal/login-modal.component.html
+++ b/frontend/src/app/_modals/login-modal/login-modal.component.html
@@ -6,12 +6,12 @@
<mat-icon>close</mat-icon>
</button>
<h1 class="login-heading mt-5 mb-5">Prijava</h1>
- <form>
+ <form (keydown)="doLoginWithEnterKey($event)">
<!-- Korisnicko ime -->
<div class="mb-3">
<mat-form-field appearance="fill">
<mat-label>Korisničko ime</mat-label>
- <input type="text" matInput [(ngModel)]="username" name="username" id="username">
+ <input type="text" matInput [(ngModel)]="username" name="username" id="username" #usernameInput autofocus="true">
<mat-icon matSuffix></mat-icon>
</mat-form-field>
</div>