commit 10d0852a53fb36be5d0ec09a2fe3d5eb31de9a9b parent 73a752fe5b10b7d3284a5baea50b12df9a40a073 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Sun, 14 Jul 2024 14:44:07 +0200 add shift+click to select a range Diffstat:
M | source/jucePluginEditorLib/patchmanager/griditemcontainer.cpp | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/source/jucePluginEditorLib/patchmanager/griditemcontainer.cpp b/source/jucePluginEditorLib/patchmanager/griditemcontainer.cpp @@ -106,11 +106,16 @@ namespace jucePluginEditorLib::patchManager if(i == m_itemIndexMouseDown) { const auto cmd = _e.mods.isCommandDown(); + const auto shift = _e.mods.isShiftDown(); if(m_grid.isSelected(i) && cmd) { m_grid.deselectItem(i); } + else if(shift) + { + m_grid.selectRange(i); + } else { m_grid.selectItem(i, !cmd);