Skip to content

Commit

Permalink
Merge pull request musescore#17434 from MarcSabatella/ctrl-right
Browse files Browse the repository at this point in the history
fix Ctrl+Left/Right for chord symbols & figured bass
  • Loading branch information
RomanPudashkin authored May 16, 2023
2 parents cd79de8 + b53bd54 commit d78daf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/engraving/libmscore/figuredbass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,10 @@ bool FiguredBass::isEditAllowed(EditData& ed) const
return false;
}

if ((ed.key == Key_Left || ed.key == Key_Right) && (ed.modifiers & ControlModifier)) {
return false;
}

return TextBase::isEditAllowed(ed);
}

Expand Down
4 changes: 4 additions & 0 deletions src/engraving/libmscore/harmony.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,10 @@ bool Harmony::isEditAllowed(EditData& ed) const
return false;
}

if ((ed.key == Key_Left || ed.key == Key_Right) && (ed.modifiers & ControlModifier)) {
return false;
}

if (ed.key == Key_Return || ed.key == Key_Enter) {
// This "edit" is actually handled in NotationInteraction::editElement
return true;
Expand Down

0 comments on commit d78daf0

Please sign in to comment.