diff --git a/src/app/components/info-drawer/info-drawer.component.ts b/src/app/components/info-drawer/info-drawer.component.ts index aa22749f2..531797b0c 100644 --- a/src/app/components/info-drawer/info-drawer.component.ts +++ b/src/app/components/info-drawer/info-drawer.component.ts @@ -59,8 +59,11 @@ export class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy { displayNode: MinimalNodeEntryEntity | SiteEntry; tabs: Array = []; - @HostListener('keydown.escape') onEscapeKeyboardEvent() { - this.close(); + @HostListener('keydown.escape', ['$event']) + onEscapeKeyboardEvent(event: KeyboardEvent): void { + if ((event.target as HTMLElement).tagName !== 'INPUT') { + this.close(); + } } constructor(