Frustrating Flex problems solved #6 – Keydown

Spent some time screaming “Why can’t my component receive keyboard events? “

Crazy, I’m not sure why i never knew this, but for a component to receive keyboard events, it needs to implement IFocusMangerComponent. And then, however you’re trying to receive keyboard events, by overriding keyDownHandler, or listening for a keydown event, it should now receive these events…

easy when you know how!

implements=”mx.managers.IFocusManagerComponent”

Interactive developer, Author - iOS development with Swift - book coming 2017 https://manning.com/books/ios-development-with-swift

Tagged with:
Posted in Flex

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: