diff --git a/OpenUtau/ViewModels/NotesViewModel.cs b/OpenUtau/ViewModels/NotesViewModel.cs index 07f2d4605..64ee78259 100644 --- a/OpenUtau/ViewModels/NotesViewModel.cs +++ b/OpenUtau/ViewModels/NotesViewModel.cs @@ -511,17 +511,24 @@ public void DeselectNotes() { } public void ToggleSelectNote(UNote note) { + /// + /// Change the selection state of a note without affecting the selection state of the other notes. + /// Add it to selection if it isn't selected, or deselect it if it is already selected. + /// if (Part == null) { return; } if (Selection.Contains(note)) { DeselectNote(note); } else { - SelectNote(note); + SelectNote(note, false); } } public void SelectNote(UNote note) { + /// + /// Select a note and deselect all the other notes. + /// SelectNote(note, true); } public void SelectNote(UNote note, bool deselectExisting) {