Listen for the "enter" event and set focus somewhere else.  You can use
focusManager.getNextFocusManagerComponent if you're not sure where to
set focus.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Kellogg
Sent: Tuesday, May 29, 2007 5:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TextInput vs. ENTER key.

 

Hello,

 

I have a number of TextInput controls that I'm using with Validators
(phoneNumber, email, etc).

 

It all works correctly, except that I want an ENTER (or RETURN) to bump
the user out of the field (therefore triggering the validator).

 

Any ideas how to do this?  Will  RESTRICT allow me to tell TextInput to
treat ENTER and RETURN the same as TAB?

 

TIA

 

Steve

 

 

 

Reply via email to