Should the logic that ensures end defaults to start when it's null be in LzText.setSelection()? Then you could use LzTextSprite.setSelection(start:Number, end:Number). Bummer how Number isn't nullable in AS3, huh?

Otherwise, approved!

On 8/4/10 4:42 PM, Henry Minsky wrote:
Change 20100804-hqm-W by [email protected] on 2010-08-04 19:40:10 EDT
     in /Users/hqm/openlaszlo/trunktlf
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: SWF 10 - The setSelection method does not position the cursor

New Features:

Bugs Fixed: LPP-9269

Technical Reviewer: max
QA Reviewer: danielle
Doc Reviewer: (pending)

Documentation:

Release Notes:

Overview:


Details:

Make LzInputTextSprite.setSelection() set the focus on the textfield before 
setting the selection range



Tests:

test case from bug report works in swf10

Files:
M       WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
M       WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100804-hqm-W.tar

--
Regards,
Max Carlson
OpenLaszlo.org

Reply via email to