Is it possible to trigger my "Add" button by pressing enter on the keyboard?
////
This is the last div in the form, for the third gap:
<div fd-form-item *ngIf="targetType.value != null">
<label fd-form-label for="input-showroom-hostname" [required]="true">URL:</label>
<fd-form-input-message-group>
<input
fd-form-control
type="text"
id="input-showroom-hostname"
placeholder="e.g. l2w.demo.hybris.com"
formControlName="hostname"
[state]="determineFormControlState(hostname)"
/>
<fd-form-message *ngIf="hasRequiredErrors(hostname)" [type]="'error'"> {{ REQUIRED }} </fd-form-message>
<fd-form-message *ngIf="hasShowroomUserRightsErrors(hostname)" [type]="'error'"> {{ SHOWROOM_USER_RIGHTS }}</fd-form-message>
<fd-form-message *ngIf="hasPatternErrors(hostname)" [type]="'error'"> {{ URL_PATTERN }} </fd-form-message>
</fd-form-input-message-group>
</div>
<br />
</div>
button
elements already triggerclick
handler when you press enter while this button is in focus. No changes needed – EuphratesaddShowRoom()
without the add button having focus, please elaborate when exactly you want to call the function. – Thermel