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:
parent
2bec17ca1a
commit
0d9c4986e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user