Commit a1a7abb6 authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Fix #219

Showing with 6 additions and 1 deletion
+6 -1
......@@ -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
}
}
Supports Markdown
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