Actually that's imperfect too. If you tab in and then move the caret with the keyboard then click you will reselect everything. You'd probably have to add a KeyPress event handler as well and set selectAll to False.