Commit 6bb9ef44 authored by George Kalampokis's avatar George Kalampokis

Admin Login can performed also by pressing the Enter key (ref #223)

parent ea5ec989
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, HostListener } from '@angular/core';
import { Router } from '@angular/router';
import { Credential } from '@app/core/model/auth/credential';
import { AuthService } from '@app/core/services/auth/auth.service';
......@@ -17,6 +17,10 @@ export class AdminLoginComponent extends BaseComponent implements OnInit {
public auth2: any;
public credential: Credential;
@HostListener('document:keydown.enter', ['$event']) onKeydownHandler() {
private authService: AuthService,
private uiNotificationService: UiNotificationService,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment