Skip to content

Commit

Permalink
Update search to hide on Esc key
Browse files Browse the repository at this point in the history
  • Loading branch information
Waguramu committed Sep 12, 2024
1 parent 674bc4d commit f7e0d52
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions erdblick_app/app/search.panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f7e0d52

Please sign in to comment.