setWantsKeyboardFocus (false) was the start of my problems.
However if i put in my
setWantsKeyboardFocus(true) and then in the
unfocusAllComponents() then we get the right behaviour at the expense of lots of calls to focus and unfocus everytime anything is clicked on.
InfiniteRecorderEditor::InfiniteRecorderEditor (InfiniteRecorderProcessor& p)
setWantsKeyboardFocus(true); // see focusGained override
void focusGained (FocusChangeType) override
// back stop so clicking on anything that doesn't have keyboard focus specifically enabled
// defocuses everything