       hitTestResult = @hitTest @trackerPointToMain(point), record.block
 
       if hitTestResult?
+        @setTextInputFocus null
         @clickedBlock = record.block
         @clickedPoint = point
 

        hitTestResult = @hitTest palettePoint, block

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

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

