bbt markers: Primary-click on BBT ruler to create
This commit is contained in:
parent
eadd26b379
commit
5738f3d1b1
@ -826,19 +826,24 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
||||
case TimecodeRulerItem:
|
||||
case SamplesRulerItem:
|
||||
case MinsecRulerItem:
|
||||
case BBTRulerItem:
|
||||
if (!Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier)
|
||||
&& !ArdourKeyboard::indicates_constraint (event->button.state)) {
|
||||
_drags->set (new CursorDrag (this, *_playhead_cursor, false), event);
|
||||
} else if (ArdourKeyboard::indicates_constraint (event->button.state)
|
||||
&& Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier)) {
|
||||
_drags->set (new TempoTwistDrag (this, item), event);
|
||||
} else if (ArdourKeyboard::indicates_constraint (event->button.state)) {
|
||||
_drags->set (new BBTRulerDrag (this, item), event);
|
||||
}
|
||||
return true;
|
||||
break;
|
||||
|
||||
case BBTRulerItem:
|
||||
if (!Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier)
|
||||
&& !ArdourKeyboard::indicates_constraint (event->button.state)) {
|
||||
_drags->set (new CursorDrag (this, *_playhead_cursor, false), event);
|
||||
} else if (Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier)) {
|
||||
_drags->set (new BBTRulerDrag (this, item), event);
|
||||
}
|
||||
return true;
|
||||
|
||||
case RangeMarkerBarItem:
|
||||
if (Keyboard::modifier_state_contains (event->button.state, Keyboard::TertiaryModifier)) {
|
||||
|
Loading…
Reference in New Issue
Block a user