mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +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;
|
||||
tabs: Array<SidebarTabRef> = [];
|
||||
|
||||
@HostListener('keydown.escape') onEscapeKeyboardEvent() {
|
||||
this.close();
|
||||
@HostListener('keydown.escape', ['$event'])
|
||||
onEscapeKeyboardEvent(event: KeyboardEvent): void {
|
||||
if ((event.target as HTMLElement).tagName !== 'INPUT') {
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
|
||||
constructor(
|
||||
|
Reference in New Issue
Block a user