Previously, changing the Text
property of a TextBox while the user was focused in it would move the cursor to the end of the text.
As of a recent update, upon changing the Text
, the cursor position remains in the same relative position.
For example, consider you had a script where pressing Tab
auto-completed text based on suggestions. Previously, pressing Tab to accept a suggestion would move your cursor to the end. Now, pressing Tab keeps your cursor in the same place, so you must manually move your cursor to the end.
I would generally consider this desired behavior now that we have the CursorPosition
property, however, this change has broken the auto-complete feature in existing systems of mine, notably Cmdr. I think that it would be better to preserve the old behavior in this case for compatibility reasons.
I’ve attached a place file demonstrating a case where this behavior change makes a difference:
TextBoxBehaviorChangeRepro.rbxl (20.8 KB)