npm install ngx-focus-control --save
Focus lock directive
This directive locks some area (div, span...). The first and last focusable child of the directive element are connected together (the next focus target of the last child is the first child and vice versa), useful for accessible modals.
Example shows the box, that you can not leave with the keyboard when you have focused some element. Focus the first element and navigate using the keyboard (TAB and SHIFT + TAB).