The following example shows how you can prevent a user from pressing Enter in a Flex TextArea control by listening for the textInput event and checking the TextEvent object’s text property for a newline character (”\n”). Full code after the jump.
Its dumb you have to code this, but ok. |