I’ve noticed that with the recent git code (21 Apr 2010) that keyboard events aren’t being passed back to Live (8.1.3). Once the plugin has focus (which is needed for tracking the mouse to get mouse enter and exit messages) then if the user presses “space” then the sequencer doesn’t start playing and I get an operating system beep.
- JucePlugin_EditorRequiresKeyboardFocus is True
- 32 bit AU plugin
- Live 8.1.3 (also happened in earlier versions of Live 8.x)
DP 7.11 also gets no keystrokes. The only host I have tested that does get them is Logic 9.x.
I’ve stepped through all the code and can confirm that the NSViewComponentPeer when - (void) keyDown: (NSEvent*) ev , the call to owner->redirectKeyDown (ev) returns false, then [super keyDown: ev] is called which then calls redirectPerformKeyEquivalent and then on to redirectKeyDown again and still returns false. This same sequence happens for all hosts.
Should there be some other listener or other mechanism for manually passing this event on to the host? I tried adding a manual call via adding a keyPressed function to EditorCompHolder with the same type of stuff that was in ComponentInHIView, but to no avail.
Any other ideas?