You can set the "restrict" property to a list of characters - see
TextField docs.
On 26/05/2010 16:54, Mattheis, Erik (MIN-WSW) wrote:
I need to make a form that can be used without a mouse. I have
private function keyHandler(e:KeyboardEvent):void {
if (e.controlKey) {
switch (e.keyCode) {
case SAVE :
saveCurrentContent();
break;
etc, which captures a control-s just fine, but it types a "box" character into
the textfield. How do I go about preventing this?
_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T 952 346 6610
C 612 377 2272
Weber Shandwick
Advocacy starts here.
PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders