mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-07 17:48:27 +00:00
trigger event when not input
This commit is contained in:
@@ -59,8 +59,11 @@ export class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
displayNode: MinimalNodeEntryEntity | SiteEntry;
|
displayNode: MinimalNodeEntryEntity | SiteEntry;
|
||||||
tabs: Array<SidebarTabRef> = [];
|
tabs: Array<SidebarTabRef> = [];
|
||||||
|
|
||||||
@HostListener('keydown.escape') onEscapeKeyboardEvent() {
|
@HostListener('keydown.escape', ['$event'])
|
||||||
this.close();
|
onEscapeKeyboardEvent(event: KeyboardEvent): void {
|
||||||
|
if ((event.target as HTMLElement).tagName !== 'INPUT') {
|
||||||
|
this.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
Reference in New Issue
Block a user