Modified mousedown listener for checkboxes.