FP8: experiment with selection-mode
authorRobin Gareus <robin@gareus.org>
Tue, 18 Apr 2017 11:39:42 +0000 (13:39 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 18 Apr 2017 11:39:42 +0000 (13:39 +0200)
libs/surfaces/faderport8/faderport8.cc

index 2eb24a15543ba31445927ed1569ef1288cd59ea5..802942cbe780b0c41e67b38e6066c6ea2ab2d217 100644 (file)
@@ -1409,6 +1409,17 @@ FaderPort8::select_strip (boost::weak_ptr<Stripable> 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<Stripable> ws)
        } else {
                ToggleStripableSelection (s);
        }
+#endif
 }
 
 /* called from static PresentationInfo::Change */