Pane shouldn't steal focus from its children

This was removed in #14175 in order to solve #14173 (editors not being
focused when clicking tabs). However, it means that the pane steals
focus from its children. The solution is to add the guard back and to
solve #14173 in another way: by delaying the activation of the item
(see atom/tabs#439).
This commit is contained in:
Matthew Dapena-Tretter
2017-05-12 13:50:19 -07:00
parent b61e978a80
commit 0aa4c1a976

View File

@@ -67,7 +67,7 @@ class PaneElement extends HTMLElement
activated: ->
@isActivating = true
@focus()
@focus() unless @hasFocus() # Don't steal focus from children.
@isActivating = false
activeStatusChanged: (active) ->