make escape in pianoroll clear point selection as well as notes

This commit is contained in:
Paul Davis
2025-01-15 18:09:18 -07:00
parent 7ec2bc4edd
commit f608ad1f27
3 changed files with 14 additions and 1 deletions

View File

@@ -1681,8 +1681,9 @@ Pianoroll::escape ()
return;
}
view->clear_note_selection ();
view->clear_selection ();
}
Gdk::Cursor*
Pianoroll::which_track_cursor () const
{

View File

@@ -631,3 +631,14 @@ PianorollMidiView::point_selection_changed ()
active_automation->line->set_selected_points (_editing_context.get_selection().points);
}
}
void
PianorollMidiView::clear_selection ()
{
MidiView::clear_note_selection ();
PointSelection empty;
for (CueAutomationMap::iterator i = automation_map.begin(); i != automation_map.end(); ++i) {
i->second.line->set_selected_points (empty);
}
}

View File

@@ -78,6 +78,7 @@ class PianorollMidiView : public MidiView
void automation_leave ();
void point_selection_changed ();
void clear_selection ();
sigc::signal<void> AutomationStateChange;