Re: [flexcoders] Re: Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Nick Middleweek
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. Mmmm... Any ideas?

[flexcoders] Re: Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Andrew
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

Re: [flexcoders] Re: Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Nick Middleweek
Andrew - cheers. My problem was that I am working with a custom Numeric Stepper, I had extended the base control it so it could support null entries and to be quite restrictive with the inputs... 0-9, delete key, backspace, etc... I forgot to include ENTER.. doh! :-) After your post, I decided to

[flexcoders] Re: Capturing ENTER key in a Numeric Stepper

2010-07-10 Thread Andrew
In my applications I use the change event to fire events( like change='doThisThing()'). Seems to work for the number stepper just fine. --- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote: Hello, I've got a form with a few fields on, one being a numeric stepper. On the