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 authored and vpereverzev committed Dec 19, 2020
1 parent 78e9843 commit 1a8433b
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
Expand Up @@ -460,7 +460,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
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 1a8433b

Please sign in to comment.