pressing alt while creating a note (snap modifier) keeps mouse_state.
This commit is contained in:
@@ -713,10 +713,9 @@ MidiRegionView::key_press (GdkEventKey* ev)
|
|||||||
detectable auto-repeat is the name of the game and only sends
|
detectable auto-repeat is the name of the game and only sends
|
||||||
repeated presses, carry out key actions at key press, not release.
|
repeated presses, carry out key actions at key press, not release.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool unmodified = Keyboard::no_modifier_keys_pressed (ev);
|
bool unmodified = Keyboard::no_modifier_keys_pressed (ev);
|
||||||
|
|
||||||
if (unmodified && (ev->keyval == GDK_Alt_L || ev->keyval == GDK_Alt_R)) {
|
if (unmodified && (ev->keyval == GDK_Alt_L || ev->keyval == GDK_Alt_R) && _mouse_state != AddDragging) {
|
||||||
_mouse_state = SelectTouchDragging;
|
_mouse_state = SelectTouchDragging;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user