From f7e0d526b958b885acfb1e222e25b4621a6ea358 Mon Sep 17 00:00:00 2001 From: Wagram Airiian Date: Thu, 12 Sep 2024 16:25:24 +0200 Subject: [PATCH] Update search to hide on Esc key --- erdblick_app/app/search.panel.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/erdblick_app/app/search.panel.component.ts b/erdblick_app/app/search.panel.component.ts index d073d110..1a174672 100644 --- a/erdblick_app/app/search.panel.component.ts +++ b/erdblick_app/app/search.panel.component.ts @@ -514,8 +514,12 @@ export class SearchPanelComponent implements AfterViewInit { } } else if (event.key === 'Escape') { event.stopPropagation(); - this.setSearchValue(""); - } + if (this.searchInputValue) { + this.setSearchValue(""); + return; + } + this.dialog.close(event); + }`` } selectHistoryEntry(index: number) {