Fix a text selection problem

Added back a line to clear out the selection on adder click.
Fixes #1598.