Hi Jules,
Would it be possible to add a feature to the ListBox to automatically select/deselect multiple rows without holding down the command key?
I don't know if there's a better method to achive the same result, but maybe something like this:
void ListBox::selectRowsBasedOnModifierKeys (const int row, ModifierKeys mods, const bool isMouseUpEvent) { if ((multipleSelection && mods.isCommandDown()) || (multipleSelection && multipleSelectionOnClick)) { flipRowSelection (row); } [...] } void ListBox::setMultipleSelectionOnClickEnabled (bool b) { multipleSelectionOnClick = b; }
Default would be false of course.
Thanks in advance.