Skip to content

Commit

Permalink
Merge pull request #44 from worldwideweary/3.x-www-0022-Voice1ActsAsE…
Browse files Browse the repository at this point in the history
…ditForSlurTies

Personal Alteration: [Command: Voice 1] will enter into edit mode if a line/slurtie is selected (anything with grips > 1)
  • Loading branch information
worldwideweary authored Oct 1, 2024
2 parents e965c07 + e59016a commit 5d3c179
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mscore/scoreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2758,7 +2758,11 @@ void ScoreView::cmd(const char* s)
}
}},
{{"voice-1"}, [](ScoreView* cv, const QByteArray&) {
cv->changeVoice(0);
auto e = cv->score()->selection().element();
if (e && e->isEditable() && !cv->popupActive && e->gripsCount() > 1) {
cv->startEditMode(e);
}
else cv->changeVoice(0);
}},
{{"voice-2"}, [](ScoreView* cv, const QByteArray&) {
cv->changeVoice(1);
Expand Down

0 comments on commit 5d3c179

Please sign in to comment.