TextField - Select All

How do I stop a textfield from automatically selecting the entire content?

On LostFocus or Keydown of Enter… I set

me.selstart=len(me.text)
me.sellength=1

Now… when I press [Enter] I validate and reformat the input (so me.text may be replaced), but the Sel code is the very last in the method

It looks like text is selected after the KeyDown event fires on the mac so the quickest way around that would be to put the above code into the KeyUp. Unlike the MouseDown/Up events you don’t need to return True in KeyDown to get KeyUp to fire. Also change 1 to 0, there’s no real difference other than not trying to select 1 character past the end of the selection.