summaryrefslogtreecommitdiff
path: root/libs/surfaces/faderport8/faderport8.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-04-18 13:39:42 +0200
committerRobin Gareus <robin@gareus.org>2017-04-18 13:39:42 +0200
commitbce08cf4f37b2bbd33345fb7296a6ced04eb652a (patch)
treeb6014646fa58a15c85c5bb3c1ada6d5b09e08eac /libs/surfaces/faderport8/faderport8.cc
parent629b5e0446beee9ba0627b608119cd46fd8206da (diff)
FP8: experiment with selection-mode
Diffstat (limited to 'libs/surfaces/faderport8/faderport8.cc')
-rw-r--r--libs/surfaces/faderport8/faderport8.cc12
1 files changed, 12 insertions, 0 deletions
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<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 */