     # deal with the click.
     if hitTestResult?
       # Record the hit test result (the block we want to pick up)
+      @setTextInputFocus null
       @clickedBlock = hitTestResult
       @clickedBlockIsPaletteBlock = false
 

      hitTestResult = @hitTest @trackerPointToMain(point), record.block

      if hitTestResult?
        @clickedBlock = record.block
        @clickedPoint = point


    if state.consumedHitTest then return

    if @lassoSegment? and @hitTest(@trackerPointToMain(point), @lassoSegment)?
      @setTextInputFocus null
      @clickedBlock = @lassoSegment
      @clickedBlockIsPaletteBlock = false
      @clickedPoint = point
