clicking to make selection, moves cursor in editor