You can't disable the spacebar processing directly, you have to short
circuit it.  So you want to add an listener for the key events on the
button(s) and then stop events from the spacebar.

cheers,
barneyb

On Fri, Aug 21, 2009 at 9:31 AM, houjian<[email protected]> wrote:
>
> Hello,
> I have a application with some buttons, I want to do something when I
> press the SpaceBar, but when I press it, it will 'click' the buttons
> which one has the focus. How to disable the spacebar 'binding' to the
> button?
>
> Best Regards,
> James Heller
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:6039
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to