Skip to content
Snippets Groups Projects
Commit a1a7abb6 authored by mathias.chouet's avatar mathias.chouet
Browse files

Fix #219

parent 451381da
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
<mat-form-field>
<input matInput required [placeholder]="uitextFilenameInput" [(ngModel)]="fileName"
name="filename" #filename="ngModel">
name="filename" #filename="ngModel" (keydown.enter)="onEnterPressed($event)">
</mat-form-field>
</div>
......
......@@ -71,4 +71,9 @@ export class DialogSaveSessionComponent {
public get uitextFilenameInput() {
return this.intlService.localizeText("INFO_DIALOG_SAVE_SESSION_FILENAME");
}
public onEnterPressed(event) {
this.saveSession();
return false; // stops event propagation
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment