Version 8.1.47
Scenario:
- Type two lines of text into a TextArea
- Click outside the TextArea
- Click back in the TextArea at the end of the first line, and hit ENTER
- Click outside the TextArea or hit ENTER again--either action causes the newline created in step #3 to disappear
I have tried every combination of the deferUpdates
and rejectUpdatesWhileFocused
properties, but it always behaves like this. The second line of text isn't necessary, it just makes the behavior more obvious. The newline is clipped wherever you type it, so long as either the component loses focus, or the next character typed is also a newline.
A couple more observations:
- Losing focus does not cause this behavior when done via hitting TAB
- When
rejectUpdatesWhileFocused
is False, hitting ENTER twice in a row after refocus not only clips the second newline, but causes the cursor to jump to the end of the text