[Fixes bug #1190169] Clear the selection when clicking in the Text Tool.

In addition to the bug in the report, this also fixes bugs where the
selection would "teleport" to the new location if you clicked somewhere
else in the text.