Merge pull request #4337 from MaximilianKrambach/autofocusproject

autofocus 'OK' on 'project' dialogs
This commit is contained in:
Emanuel Schütze 2019-02-14 13:19:26 +01:00 committed by GitHub
commit 24d239acd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ export class ProjectionDialogService {
ProjectionDialogReturnType
>(ProjectionDialogComponent, {
maxHeight: '90vh',
autoFocus: false,
data: descriptor
});
const response = await dialogRef.afterClosed().toPromise();

View File

@ -38,6 +38,6 @@
</div>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button (click)="onOk()" color="primary" translate>OK</button>
<button mat-button osAutofocus (click)="onOk()" color="primary" translate>OK</button>
<button mat-button (click)="onCancel()" translate>Cancel</button>
</mat-dialog-actions>