deactivate KeyboardEvent on a Spark Button

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

deactivate KeyboardEvent on a Spark Button

pol2095
Hello,

how to deactivate KeyboardEvent on a Spark Button ?

Thanks



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: deactivate KeyboardEvent on a Spark Button

kamcknig
You can add a keyDown listener and invoke event.stopPropagation();

You can also check the key being pressed if you only want certain key
presses stopped

Kyle



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: deactivate KeyboardEvent on a Spark Button

pol2095
Reply | Threaded
Open this post in threaded view
|

Re: deactivate KeyboardEvent on a Spark Button

kamcknig
This post was updated on .
It's also worth nothing that in some circumstances you might want to use
stopImmediatePropagation() instead

You can read about the differences on the doc page for the Event class
https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/Event.html



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/