Buttons in flex can be pressed with the space key, but a client would like to press enter instead of space. This can be achieved by programming each button, but it would be very time consuming.
Does anyone have an idea how to do this in the less amount of time?
thanks.
I created a
KeyPressForwarderthat “forwards” the key press as a click:And then setup a binding:
You could eliminate the class and just use the function as the concept is generic. Just make sure you have a
clickhandler to handle the forwarded event.