Seems like there should simply be an event on a textArea 
called "selectionChanged"... alas there is not.

So here is what I've tried:

mouseUp handler - Works great if user clicks in a textArea and drags 
out a selection and lets up on the mouse inside the bounds of the 
text area. BUT, if they let up outside, mouseUp doesn't fire... even 
though the user continues to adjust the selection while the mouse is 
outside the textArea! (it gives you that nice "line at time" style 
of text selection)

mouseOut handler -  Sure, it helps when it fires as soon as the 
mouse moves outside the textArea during the process of adjusting the 
selection, but then it's just frozen there while the user continues 
to move the mouse up and down and effect the "like at a time" style 
of text selection mentioned above.

mouseMove handler - Only works while over the textArea...

keyUp handler - YAY, seems to be pretty foolproof for catching text 
selection via the SHFT-Left Arrow and SHFT-Right Arrow.

Isn't there an easy way to constantly listen to an objects 
property... like selectionEndIndex or selectionBeginIndex??? I 
assume it's getting updated while I adjust the text selection by 
moving the mouse outside the textArea.

Cheers,
Jeff





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to