commit
fcb0824b13
2 changed files with 8 additions and 1 deletions
|
@ -22,6 +22,7 @@ ObxdAudioProcessorEditor::ObxdAudioProcessorEditor (ObxdAudioProcessor& ownerFil
|
||||||
skins (processor.getSkinFiles()),
|
skins (processor.getSkinFiles()),
|
||||||
banks (processor.getBankFiles())
|
banks (processor.getBankFiles())
|
||||||
{
|
{
|
||||||
|
|
||||||
// skinFolder = ownerFilter.getCurrentSkinFolder(); // initialized above
|
// skinFolder = ownerFilter.getCurrentSkinFolder(); // initialized above
|
||||||
commandManager.registerAllCommandsForTarget(this);
|
commandManager.registerAllCommandsForTarget(this);
|
||||||
commandManager.setFirstCommandTarget(this);
|
commandManager.setFirstCommandTarget(this);
|
||||||
|
@ -39,7 +40,11 @@ ObxdAudioProcessorEditor::ObxdAudioProcessorEditor (ObxdAudioProcessor& ownerFil
|
||||||
getTopLevelComponent()->addKeyListener (commandManager.getKeyMappings());
|
getTopLevelComponent()->addKeyListener (commandManager.getKeyMappings());
|
||||||
|
|
||||||
//Timer::callAfterDelay (100, [this] { this->grabKeyboardFocus(); }); // ensure that key presses are sent to the KeyPressTarget object
|
//Timer::callAfterDelay (100, [this] { this->grabKeyboardFocus(); }); // ensure that key presses are sent to the KeyPressTarget object
|
||||||
startTimer(100);
|
#if JUCE_WINDOWS
|
||||||
|
// No run timer to grab component on window
|
||||||
|
#else
|
||||||
|
startTimer(100); // This will fix the issue
|
||||||
|
#endif
|
||||||
loadSkin (processor);
|
loadSkin (processor);
|
||||||
repaint();
|
repaint();
|
||||||
|
|
||||||
|
|
|
@ -100,11 +100,13 @@ public:
|
||||||
case KeyPressCommandIDs::buttonNextProgram:
|
case KeyPressCommandIDs::buttonNextProgram:
|
||||||
case KeyPressCommandIDs::buttonPadNextProgram:
|
case KeyPressCommandIDs::buttonPadNextProgram:
|
||||||
nextProgram();
|
nextProgram();
|
||||||
|
grabKeyboardFocus();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case KeyPressCommandIDs::buttonPrevProgram:
|
case KeyPressCommandIDs::buttonPrevProgram:
|
||||||
case KeyPressCommandIDs::buttonPadPrevProgram:
|
case KeyPressCommandIDs::buttonPadPrevProgram:
|
||||||
prevProgram();
|
prevProgram();
|
||||||
|
grabKeyboardFocus();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue