I have a modal window that pops up when you click a .btn link.

When it is active, users can still press Tab to focus on links and buttons in the background, some of which have download links. When these links are focused on and user pressed enter key the download action takeplace.

Is there a way to disable background Tab while the modal window is active?

I am using below versions:

<https://valor-software.com/ngx-bootstrap/#/modals> (V2.4),
Angular CLI 1.6