13
0

Only add a new tempo or meter on click if the primary modifier is pressed

Being able to add with any modifier can confuse a user who expected
a tempo-altering drag.
This commit is contained in:
nick_m 2017-06-17 05:06:42 +10:00
parent 2bec17ca1a
commit 0d9c4986e9

View File

@ -1585,14 +1585,14 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT
return true;
case TempoBarItem:
case TempoCurveItem:
if (!_dragging_playhead) {
if (!_dragging_playhead && Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier)) {
snap_to_with_modifier (where, event);
mouse_add_new_tempo_event (where.frame);
}
return true;
case MeterBarItem:
if (!_dragging_playhead) {
if (!_dragging_playhead && Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier)) {
mouse_add_new_meter_event (pixel_to_sample (event->button.x));
}
return true;