mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Set tab index on root-view to 0
Previously if the tree-view was open and was focused and no editors were open and tab was pressed the document body would become focused which would not allow events bound to root view to be triggerable. This ensures that the root-view always gets focus back when another view is tabbed away from.
This commit is contained in:
@@ -18,7 +18,7 @@ class RootView extends View
|
||||
disabledPackages: []
|
||||
|
||||
@content: ->
|
||||
@div id: 'root-view', tabindex: -1, =>
|
||||
@div id: 'root-view', tabindex: 0, =>
|
||||
@div id: 'horizontal', outlet: 'horizontal', =>
|
||||
@div id: 'vertical', outlet: 'vertical', =>
|
||||
@div id: 'panes', outlet: 'panes'
|
||||
|
||||
Reference in New Issue
Block a user