Tweak for keyboard handling

This commit is contained in:
xenakios 2018-12-15 17:23:32 +02:00
parent 7cb3ec78b6
commit bcf05cb8c2

View File

@ -518,12 +518,10 @@ void PaulstretchpluginAudioProcessorEditor::filesDropped(const StringArray & fil
bool PaulstretchpluginAudioProcessorEditor::keyPressed(const KeyPress & press)
{
std::function<bool(void)> action;
if (press == 'I')
{
chooseFile();
return true;
}
return false;
action = [this]() { chooseFile(); return true; };
return action && action();
}
void PaulstretchpluginAudioProcessorEditor::chooseFile()