You can set the TextEdit's
readonly property to
true until Enter has been pressed while the TextEdit is focused. When Enter is pressed, set
false until the TextEdit loses focus.
However, note that this is not the expected behavior in most applications. In fact, if you try tabbing around form fields in your web browser, you'll notice that you can start typing text as soon as a text field is focused with Tab.