Tweak for keyboard handling
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user