         @visible = false
     , Number(!noDelay) * @conf.hideDelay
     @enableHoverEvents()
+    if @conf.unfocusTreeViewOnClose
+      @getTreeViewModel().unfocus()
 
   toggle: =>
     console.log @visible

      type: 'boolean'
      default: false
      order: 4

  activate: (state) ->
    atom.packages.onDidActivateInitialPackages @initialize

      @animate treeViewEl.clientWidth, =>
        @visible = true
    , Number(!noDelay) * @conf.showDelay
    if @conf.focusTreeViewOnOpen
      @getTreeViewModel().focus()

  hide: (noDelay = false) =>
    return unless @getTreeViewResizerEl()
