Skip to content

Commit

Permalink
Fix #313195: synalepha shortcut fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Asmatzaile committed Dec 17, 2020
1 parent 7d9f012 commit 2da6cc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/textedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ bool TextBase::edit(EditData& ed)
}
}
if (ctrlPressed && altPressed) {
if (ed.key == Qt::Key_hyphen) {
if (ed.key == Qt::Key_Minus) {
insertSym(ed, SymId::lyricsElision);
return true;
}
Expand Down
4 changes: 4 additions & 0 deletions mscore/editlyrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ bool ScoreView::editKeyLyrics()

case Qt::Key_Minus:
if (editData.control(textEditing)) {
if ((editData.modifiers & Qt::AltModifier) && editData.element->edit(editData)) {
_score->update();
break;
}
// change into normal minus
editData.modifiers &= ~CONTROL_MODIFIER;
return false;
Expand Down

0 comments on commit 2da6cc4

Please sign in to comment.