From bce08cf4f37b2bbd33345fb7296a6ced04eb652a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 18 Apr 2017 13:39:42 +0200 Subject: [PATCH] FP8: experiment with selection-mode --- libs/surfaces/faderport8/faderport8.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libs/surfaces/faderport8/faderport8.cc b/libs/surfaces/faderport8/faderport8.cc index 2eb24a1554..802942cbe7 100644 --- a/libs/surfaces/faderport8/faderport8.cc +++ b/libs/surfaces/faderport8/faderport8.cc @@ -1409,6 +1409,17 @@ FaderPort8::select_strip (boost::weak_ptr ws) if (!s) { return; } +#if 1 /* single exclusive selection by default, toggle via shift */ + if (shift_mod ()) { + ToggleStripableSelection (s); + } else { + SetStripableSelection (s); + } +#else + /* tri-state selection: This allows to set the "first selected" + * with a single click without clearing the selection. + * Single de/select via shift. + */ if (shift_mod ()) { if (s->is_selected ()) { RemoveStripableFromSelection (s); @@ -1423,6 +1434,7 @@ FaderPort8::select_strip (boost::weak_ptr ws) } else { ToggleStripableSelection (s); } +#endif } /* called from static PresentationInfo::Change */