 
   show: =>
     @panel.show()
-    @emailEditor.editor.click()
+    @emailEditor.editor.focus()
 
   hide: ->
     @panel.hide()

    @loginPromise = null

    @emailModel = @emailEditor.editor.getModel()
    @passwordModel = @passwordEditor.editor.getModel()
    passwordElement = $(@passwordEditor.editor.element.rootElement)
    passwordElement.find('div.lines').addClass('password-lines')
    @passwordModel.onDidChange =>

      @subview 'passwordEditor', new MiniEditorView('and a password?')
      @div class: 'text-error block', outlet: 'errorLabel'
      @div class: 'block', =>
        @button click: 'login', id: 'loginButton', class: 'btn btn-primary', outlet: 'loginButton', tabindex: 3, 'Log in'
        @button click: 'cancel', id: 'cancelButton', class: 'btn', outlet: 'cancelButton', tabindex: 4, 'Cancel'
        @span class: 'three-quarters inline-block hidden', outlet: 'spinner'
        @a href: 'https://build.particle.io/forgot-password', class: 'pull-right', tabindex: 5, 'Forgot password?'

  initialize: (serializeState) ->
    {CompositeDisposable} = require 'atom'
