Bug (?) with element.x.caretPosition [FIXED??]

Very simple test code:

application.output(elements.letterText.caretPosition);

run from a button on the same form as letterText.

Select empty letterText in a new record, type “abc”, and push the button; the script outputs 0! Return to letterText and click after the “c”; the script outputs 3.0. The on-screen caret is in the same place (after the “c”) in both cases but the result is different. Perhaps caretPosition isn’t updated correctly as you type?

Help please.

in 3.0 i optimized/fixed the cursor handling.
Can’t do it currently for 2.2 because there could be some difference between the (initial) cursor positions now then before.

This seems to be fixed in 2.2.4. Given your response above, I’m not sure if you did that on purpose, but in any case, thanks!