I have a main app window that is “setAlwaysOnTop(true)” so it will always be visible even with other applications are opened/selected in the OS (alt+tab in OS X for example). It is also running in kiosk mode.
However, I’d like to be able to use keyboard shortcuts in other apps that are open when my JUCE app is running. I can do this by alt-tabbing to the other app, or simply opening the other application after my JUCE app. But, even with the series of other functions below, the JUCE app is… (not sure of the proper term) brought to the front/gains keyboard focus in the OS when clicking anywhere in the JUCE window.
setAlwaysOnTop(true); setWantsKeyboardFocus(false); setMouseClickGrabsKeyboardFocus(false); setInterceptsMouseClicks(false, false); setBroughtToFrontOnMouseClick(false); removeMouseListener(this);
So, basically, I have a JUCE app with sliders that is always visibly in front controlling another application, but I’d like to have the OS think the other app is always in front so I can use its keyboard shortcuts. In other terms, I don’t want the OS X menu bar to switch to my JUCE app when clicking on its window.
Is it possible to do what I’m after in JUCE? Will this require some OS level hacking?