Here's an even simpler solution ... create a MyTextArea component that extends 
TextArea, capture the keyFocusChange event to block it and insert a tab.

MyTextArea.mxml
--------------
<?xml version="1.0" encoding="utf-8"?>
<mx:TextArea xmlns:mx="http://www.adobe.com/2006/mxml";>
  <mx:keyFocusChange>
    event.preventDefault();
    this.textField.replaceSelectedText("\t");
  </mx:keyFocusChange>
</mx:TextArea>

Then use it as so:

<local:MyTextArea restrict="0-9A-Z\-" width="400" height="400"/>

--- In [email protected], "Warren" <warrenony...@...> wrote:
>
> I have a Flex 3 textarea with restrict = "A-Z0-9\-".  I want to let users 
> enter a tab cahracter but I can't figure out how to change the restrict 
> property to allow it.
> 
> I know it's right in front of me but I can't see it.
> 
> Thanks!
> 
> Warren Koch
>

Reply via email to