summaryrefslogtreecommitdiff
path: root/libs/surfaces/push2/buttons.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/surfaces/push2/buttons.cc')
-rw-r--r--libs/surfaces/push2/buttons.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/surfaces/push2/buttons.cc b/libs/surfaces/push2/buttons.cc
index 43e4255f01..097e3debb5 100644
--- a/libs/surfaces/push2/buttons.cc
+++ b/libs/surfaces/push2/buttons.cc
@@ -364,6 +364,17 @@ Push2::button_play ()
return;
}
+ if (_modifier_state & ModSelect) {
+ if (in_range_select) {
+ in_range_select = true;
+ access_action ("Editor/start-range-from-playhead");
+ } else {
+ access_action ("Editor/finish-range-from-playhead");
+ in_range_select = false;
+ }
+ return;
+ }
+
if (session->transport_rolling ()) {
transport_stop ();
} else {