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?
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
var searchValue:int = myNumericStepper.value;
So when the enter key click is captured, the code
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
In my applications I use the change event to fire events( like
change='doThisThing()'). Seems to work for the number stepper just fine.
--- In email@example.com, Nick Middleweek n...@... wrote:
I've got a form with a few fields on, one being a numeric stepper. On the
Mail list logo