Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Source/ProgramListBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ bool ProgramListBox::keyPressed(const KeyPress &key, Component *originatingCompo
return false;
}

activePgm = currentIdx;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is a good idea. I've checked with other synths and browsing presets with arrows keys does change the preset. We should do the same.

if ( activePgm != -1 ) {
listener->programSelected(this, activePgm);
}

labels[currentIdx]->grabKeyboardFocus();

repaint();
Expand Down