From e02c34ffe3a9b387a25aa538433a061036e86e92 Mon Sep 17 00:00:00 2001 From: George Reales Date: Tue, 15 Dec 2020 12:10:32 +0100 Subject: [PATCH] KeyPress fix --- Source/PluginEditor.cpp | 1 + Source/PluginEditor.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 3b733b0..36e3953 100755 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -22,6 +22,7 @@ ObxdAudioProcessorEditor::ObxdAudioProcessorEditor (ObxdAudioProcessor& ownerFil skins (processor.getSkinFiles()), banks (processor.getBankFiles()) { + // skinFolder = ownerFilter.getCurrentSkinFolder(); // initialized above commandManager.registerAllCommandsForTarget(this); commandManager.setFirstCommandTarget(this); diff --git a/Source/PluginEditor.h b/Source/PluginEditor.h index a8bb5c3..586ee8c 100755 --- a/Source/PluginEditor.h +++ b/Source/PluginEditor.h @@ -100,11 +100,13 @@ public: case KeyPressCommandIDs::buttonNextProgram: case KeyPressCommandIDs::buttonPadNextProgram: nextProgram(); + grabKeyboardFocus(); break; case KeyPressCommandIDs::buttonPrevProgram: case KeyPressCommandIDs::buttonPadPrevProgram: prevProgram(); + grabKeyboardFocus(); break; default: return false;