angular-ui/bootstrap — pull request #2920 by Tobino (2014-11-02 18:15:34+00:00)
Title: fix(modal): Captures focus in both directions - using tab & shift-tab

This solution support Tab and Shift+Tab so the focus loop inside the modal. Focus is also returned to the launching element after close. But this solution doesn’t work with tabindex inside despite of my efforts.