Hi,

Well, looking at how Adobe did somethings, I would say you could either write a filter loop that executes in the keyDown handler or just hard code the keys you want to reject.

I don't know if this helps you but, there is;

keyEvent.stopPropagation()
keyEvent.stopImmediatePropagation()

See the docs for the lengthy definition of those methods.

Being email and all it sounds like you just need to do alittle ditch digging ;-) IE put in an if statement with logical || .

Peace, Mike

On 5/18/06, Steven Toth <[EMAIL PROTECTED]> wrote:
I'm trying to write a custom control and I need to be able to reject
certain keystrokes.  I'm able to add listeners for the KeyBoardEvent,
but they are not cancelable.  I don't see anywhere in the object
heirarchy that they are.  I'm probably missing something since I'm
approaching this from a perspective of developing similar controls
in .NET and Java.  Is handling the KeyboardEvent the correct way to do
this?  If so, how do I handle the event so that I can cancel it?  If
not, what should I be doing so I can reject certain keystrokes? 
Thanks.





--
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






--
What goes up, does come down.

--
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