This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was originally added way back in 310c058 however, a tabindex of -1 means that the tab bar can receive focus. As a result, focus would end up being transferred to the tab bar as part of the default action of the mousedown handler. When the `Pane` is activated, it would see that its child (the tab bar) had focus and leave it there, meaning the tab bar (instead of the editor) would retain focus. This behavior was first reported in #14173, however the original fix for it (#14175) resulted in Panes always stealing the focus from their children. This regression was rectified with atom/atom#14403 and #439, but really the tab bar shouldn't be focusable in the first place. Making this adjustment means we no longer have to delay the activation of the item and pane (#150 and atom/tabs#tabs#439) since the focus will no longer be given to the tab bar as part of the default action of the mousedown handler.
- Loading branch information