From cb4f392fa6dc49b5a124eda1ea02e4babf878e2b Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 25 Jan 2013 23:21:46 -0800 Subject: [PATCH] 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. --- src/app/root-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index 3a187d6a7..4063ee863 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -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'