mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-4422] Resolved - Edit Aspects Dialog should close when pressing ESC (#7022)
* [ACA-4422] Resolved - Edit Aspects Dialog should close when pressing ESC * [ACA-4422] Fixed unit test failure * [ACA-4422] Resolved unit test errors
This commit is contained in:
@@ -45,6 +45,14 @@ export class AspectListDialogComponent implements OnInit {
|
||||
this.dialog.backdropClick().subscribe(() => {
|
||||
this.close();
|
||||
});
|
||||
this.dialog.keydownEvents().subscribe(event => {
|
||||
// Esc
|
||||
if (event.keyCode === 27) {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
this.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
onValueChanged(aspectList: string[]) {
|
||||
|
Reference in New Issue
Block a user