That's fine for printable characters (i.e. text), but not for trapping
and rejecting special keys like DELETE, BACKSPACE, LEFT, RIGHT, etc. 
Those keys don't initiate a textInput event.  Try it.  Thank for the
suggestion though.

-Steven


--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 5/19/06, Steven Toth <[EMAIL PROTECTED]> wrote:
>
> >what should I be doing so I can reject certain keystrokes?
>
> Listen for the *textInput* event on the TextField at a higher priority
> and call preventDefault() on the event object. See the documentation
> for TextField and its textInput event.
>







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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to