MIDI: ctrl-d now duplicates selected notes

This commit also fixes selection-after-paste, so that the selection is always
the newly pasted notes.
This commit is contained in:
Paul Davis 2022-04-27 08:13:04 -06:00
parent 8d4516228a
commit 9e77d8923a
4 changed files with 55 additions and 2 deletions

View file

@ -208,6 +208,7 @@ public:
void select_range(Temporal::timepos_t const & start, Temporal::timepos_t const & end);
void invert_selection ();
void extend_selection ();
void duplicate_selection ();
Temporal::Beats earliest_in_selection ();
void move_selection(Temporal::timecnt_t const & dx, double dy, double cumulative_dy);
@ -545,6 +546,7 @@ public:
double _last_event_y;
bool _entered;
NoteBase* _entered_note;
bool _pasting;
bool _mouse_changed_selection;