I would probably have an event handler to deal with ALL keystrokes, and within 
that have a switch statement. One case of the switch statement would be

case '13':
var searchValue:int = myNumericStepper.value;
doTheSearch(searchValue);
break;


So when the enter key click is captured, the code goes and looks at the number 
stepper and sends whatever its current value is to the search function.


a

--- In [email protected], Nick Middleweek <n...@...> wrote:
>
> Hi Andrew.
> 
> Can you trap the ENTER (keyCode = 13) on a Numeric Stepper? I've been failing 
> to do this... :(
> 
> When a user presses the ENTER key, I want to perform an operation, such as a 
> search... So I'm thinking I need to somehow trap the ENTER key and dispatch a 
> custom event.



Reply via email to