         spellcheck      : no
       callback          : @bound 'addDomain'
 
+    @input.on 'EscapePerformed', @bound 'resetInput'
+
     @inputView.addSubView new KDView
       partial           : @domainSuffix
       cssClass          : 'domain-suffix'

        @domainController.addItem { domain, machineId }
        computeController.domains = []

        @input.setValue ""
        @inputView.hide()
        @emit "DomainInputCancelled"

      .catch (err)=>
        kd.warn "Failed to create domain:", err

    windowController.addLayer @input
    @input.setFocus()

    @input.off "ReceivedClickElsewhere"
    @input.on "ReceivedClickElsewhere", (event)=>

      if $(event.target).hasClass 'domain-suffix'
        windowController.addLayer @input
        return

      return  if $(event.target).hasClass 'domain-toggle'
      @hideInput()
