2
0
Fork 0

KeyPress fix

This commit is contained in:
George Reales 2020-12-15 12:10:32 +01:00
parent c9f5a66302
commit e02c34ffe3
2 changed files with 3 additions and 0 deletions

View file

@ -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);

View file

@ -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;