Reputation: 1054
I'm building an Away3d application which uses Flex 4.6 for UI. The arrow keys are required to move the 3d components - however, after using a component such as a slider, the application gives it focus, which means the arrow keys control it.
I can't find any way to set the global application focus to nothing - is there an easy way to do this?
I've tried setting the application's focusManager.setFocus(new Button()), and null (which crashes it), I'm sure it's easy but I can only find advice on how to set the focus to a component, not set it to nothing.
Thanks in advance!
Upvotes: 1
Views: 671
Reputation: 659
Perhaps try listening for a mouseup event on the slider then force the focus back to the 3d component with something like:
focusManager.setFocus(3dcomponent);
Upvotes: 1