Enable horizontal scrolling in midi regions when note is selected.
The shortcut for 'change velocities together' had to be changed to achieve that. The new shortcut is now primary+tertiary modifier +scroll, i.e. ctrl+shift+scroll for the default keys.
This commit is contained in:
parent
90275ded6a
commit
6389c52d3c
@ -697,9 +697,10 @@ MidiRegionView::scroll (GdkEventScroll* ev)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
|
||||
/* XXX: bit of a hack; allow PrimaryModifier scroll through so that
|
||||
it still works for zoom.
|
||||
if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier) ||
|
||||
Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier)) {
|
||||
/* XXX: bit of a hack; allow PrimaryModifier and TertiaryModifier scroll
|
||||
* through so that it still works for navigation.
|
||||
*/
|
||||
return false;
|
||||
}
|
||||
@ -707,7 +708,8 @@ MidiRegionView::scroll (GdkEventScroll* ev)
|
||||
hide_verbose_cursor ();
|
||||
|
||||
bool fine = !Keyboard::modifier_state_contains (ev->state, Keyboard::SecondaryModifier);
|
||||
bool together = Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier);
|
||||
Keyboard::ModifierMask mask_together(Keyboard::PrimaryModifier|Keyboard::TertiaryModifier);
|
||||
bool together = Keyboard::modifier_state_contains (ev->state, mask_together);
|
||||
|
||||
if (ev->direction == GDK_SCROLL_UP) {
|
||||
change_velocities (true, fine, false, together);
|
||||
|
Loading…
Reference in New Issue
Block a user