     view.addSubView @titleInput
 
     @on 'dblclick', @lazyBound 'setTitleEditMode', yes
+    @on 'ReceivedClickElsewhere', @lazyBound 'setTitleEditMode', no
 
 
   setDraggable: ->

      @setClass 'edit-mode'
      @titleInput.setValue title
      @titleInput.setFocus()
    else
      @unsetClass 'edit-mode'


  setTitle: (newTitle) ->

  setTitleEditMode: (isEditMode) ->

    { title } = @getOptions()
    { windowController } = kd.singletons

    if isEditMode
      return  unless @isEditable and @getWidth() >= MIN_EDIT_WIDTH
