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

    if state.consumedHitTest then return

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

        hitTestResult = @hitTest palettePoint, block

        if hitTestResult?
          @setTextInputFocus null
          @clickedBlock = block
          @clickedPoint = point
          @clickedBlockIsPaletteBlock = true
