Skip to content

Commit

Permalink
small refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
Pop John committed Oct 28, 2024
1 parent e387885 commit 4dcebf3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export class MsTerminalXtermWithToolbarComponent implements OnDestroy {
) {}

ngOnInit() {
this.listenToOutsideClickEvents();
}

private listenToOutsideClickEvents() {
this.clickListener = this.renderer.listen('document', 'click', (event: Event) => {
this.handleClickOutside(event);
});
Expand Down

0 comments on commit 4dcebf3

Please sign in to comment.