Sorry for bringing again this topic but I couldn’t figure out from old threads how to do this. See for example: Component focus without mouse click when Application launch
I know this should be possible because http://www.thepiz.org/plugins/?p=midiKeyboard managed to implement it back in the day (props to thepiz!).
The issue is, I can grab the keyboard focus on the first repaint (as suggested in the thread above) but if the user clicks on another plugin window, and then back to my plugin window, I can’t find a way to get notified about it (focus is strangely not gained automatically in my AudioProcessorEditor) to be able to restore the keyboard focus.
Anybody can imagine what magic is thepiz using? Could it be a JUCE issue?