I am trying to hit enter key to press a button on my login form. However it does not. The code looks like:
<div>
<button type="button" mat-raised-button (click)="doLogin()" (keyup.enter)="doLogin()">
Sign In
</button>
</div>
I have no idea why it is not firing. No error in console and angular documentation does not indicate any special requirement for it to work.