make escape in pianoroll clear point selection as well as notes
This commit is contained in:
@@ -1681,8 +1681,9 @@ Pianoroll::escape ()
|
||||
return;
|
||||
}
|
||||
|
||||
view->clear_note_selection ();
|
||||
view->clear_selection ();
|
||||
}
|
||||
|
||||
Gdk::Cursor*
|
||||
Pianoroll::which_track_cursor () const
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,6 +78,7 @@ class PianorollMidiView : public MidiView
|
||||
void automation_leave ();
|
||||
|
||||
void point_selection_changed ();
|
||||
void clear_selection ();
|
||||
|
||||
sigc::signal<void> AutomationStateChange;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user