No Key Input in Digital Performer 7.2

I know this is a recurrent problem. I am not able to get key focus for a JUCE AU plugin running under Digital Performer 7.2. It works fine in Logic. This is on MAC OSX Snow Leopard 10.6.5. I have an older version of this plugin that uses VSTGUI so there is something that VSTGUI does or doesn’t do that makes this work, or something that JUCE does or doesn’t do that makes this not work. Any ideas.

Aha! I simply needed to set JucePlugin_EditorRequiresKeyboardFocus to 1 in jucePluginCharacteristics.h. Problem solved.