Tweak for keyboard handling
This commit is contained in:
parent
7cb3ec78b6
commit
bcf05cb8c2
@ -518,12 +518,10 @@ void PaulstretchpluginAudioProcessorEditor::filesDropped(const StringArray & fil
|
|||||||
|
|
||||||
bool PaulstretchpluginAudioProcessorEditor::keyPressed(const KeyPress & press)
|
bool PaulstretchpluginAudioProcessorEditor::keyPressed(const KeyPress & press)
|
||||||
{
|
{
|
||||||
|
std::function<bool(void)> action;
|
||||||
if (press == 'I')
|
if (press == 'I')
|
||||||
{
|
action = [this]() { chooseFile(); return true; };
|
||||||
chooseFile();
|
return action && action();
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PaulstretchpluginAudioProcessorEditor::chooseFile()
|
void PaulstretchpluginAudioProcessorEditor::chooseFile()
|
||||||
|
Loading…
Reference in New Issue
Block a user