         $(document.body).focus()
         true
 
-  afterAttach: (onDom) ->
-    @focus() if onDom
-
   # Prompts to save all unsaved items
   confirmClose: ->
     @panes.confirmClose()

    @command 'core:save', => @saveActivePaneItem()
    @command 'core:save-as', => @saveActivePaneItemAs()

  # Public: Get the underlying model object.
  #
  # Returns a {Workspace}.
  getModel: -> @model

  # Install the Atom shell commands on the user's system.
  installShellCommands: ->

    for editorElement in @panes.element.querySelectorAll('.pane > .item-views > .editor')
      $(editorElement).view()


  ###
  Section: Deprecated
  ###

  # Deprecated
  eachPane: (callback) ->
