Please help with this as I am very new to angular. So in my html, I have this event binding where it would open up a document when a user clicks using the mouse.
<div
fxFlex="1 1 auto"
fxLayout="column"
class="content"
(click)="openDialog($event)">
Besides using (click), how can I also trigger the openDialog event to open using Enter key from the keyboard? Right now it doesn't do anything when I try to use the enter key.