Text box focus issue in samplitude

When I bring up my plugin's editor, the first text editor control automatically grabs keyboard focus. This happens without the user clicking on the control and is an undesired behavior. This only happens in Samplitude (64-bit/VST/Windows) and not in any other host that I have tried.

The call stack is as follows:


     dll!juce::Component::grabKeyboardFocus()  Line 2824    C++
     dll!juce::ComponentPeer::handleFocusGain()  Line 355    C++
>    dll!juce::HWNDComponentPeer::peerWindowProc(HWND__ * h=0x0000000001d805d0, unsigned int message=7, unsigned __int64 wParam=13635884, __int64 lParam=0)  Line 2506    C++
     dll!juce::HWNDComponentPeer::windowProc(HWND__ * h=0x0000000001d805d0, unsigned int message=7, unsigned __int64 wParam=13635884, __int64 lParam=0)  Line 2358 + 0x23 bytes    C++

I would appreciate any help in correcting this.

Well I figured out a workaround. You should probably go ahead and close this one.

Thanks for letting us know about this.

What was your workaround?

I called     grabKeyboardFocus(); on the main editor component after it was done initializing. This seems to work.