I have a simple TextArea
<s:TextArea id="taData" keyUp="keyListener(event)" focusEnabled="false" fontFamily="Courier New" fontSize="12" left="10" right="10" top="40" bottom="10"/>
the keyListener allows tab to be used like this
private function keyListener(event:KeyboardEvent):void
{
if (event.keyCode == Keyboard.TAB)
{
event.currentTarget..insertText("\t");
}
}
Everything works as expected, but the undo buffer is reset / stops at the point that a tab was inserted.
Is there a way to ensure that the undo buffer remains in tact even with the tab inserted