1 // disableclose 'true' but if you try to backdrop click it diesn't lose data
2 @HostListener('window:keyup.esc') onKeyUp() {
3 this._dialogRef.close(this.socios);
4 }
5 ngOnInit(): void {
6 this._dialogRef.disableClose = true;
7 this._dialogRef.backdropClick().subscribe(_ => {
8 this._dialogRef.close(this.socios);
9 })
10 }