Is there a way to route keys pressed in the main plugin editor (that are not used by the editor) directly to a MidiKeyboardComponent ?
Because i tried doing something like this (fooling a bit the MidiKeyboardComponent) but i'm getting strange crashes:
bool MyPlugEditor::keyStateChanged(bool isKeyDown) { // This generates lot of problems ! return midiKeyboardComponent->keyStateChanged(isKeyDown); }
I tried implementing a KeyboardFocusTraverser in the editor and always return the MidiKeyboardComponent that want always the keyboard focus but i'm not able to route keypress the way i want.
I actually want to route uncatched keys to that component even if it has no explicit focus, but i can't find a way to do it unless i trick with the keyStateChanged calls.
Any tips ?