Fixed: Before this PR, a click in a not first key responder CPTextField would misplace the caret if text alignment was not CPLeftTextAlignment #2887
Fixed: Before this PR, a click in a not first key responder CPTextField would misplace the caret if text alignment was not CPLeftTextAlignment #2887

Adapts the calculation of where in the textfield text the mouse is clicked to take in account the text alignment
cappuccino/cappuccino,cappuccino/cappuccino,daboe01/cappuccino,daboe01/cappuccino,cappuccino/cappuccino,cappuccino/cappuccino,cappuccino/cappuccino,daboe01/cappuccino,daboe01/cappuccino,daboe01/cappuccino,cappuccino/cappuccino,daboe01/cappuccino,cappuccino/cappuccino,daboe01/cappuccino