Skip to content

Commit

Permalink
Commands: increase/decrease active duration (toggle for note entry) w…
Browse files Browse the repository at this point in the history
…ill function as half/double when not in note-entry or if range selection exists
  • Loading branch information
worldwideweary committed Oct 13, 2024
1 parent afb1fc7 commit 1206c3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions libmscore/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4024,6 +4024,9 @@ void Score::cmdPadNoteIncreaseTAB(const EditData& ed)
default:
break;
}
if (!score()->noteEntryMode() || selection().isRange()) {
score()->cmdDoubleDuration();
}
}

//---------------------------------------------------------
Expand Down Expand Up @@ -4076,6 +4079,9 @@ void Score::cmdPadNoteDecreaseTAB(const EditData& ed)
default:
break;
}
if (!score()->noteEntryMode() || selection().isRange()) {
score()->cmdHalfDuration();
}
}

//---------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions mscore/shortcut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1727,14 +1727,14 @@ Shortcut Shortcut::_sc[] = {
},
{
MsWidget::SCORE_TAB,
STATE_NOTE_ENTRY,
STATE_NORMAL | STATE_NOTE_ENTRY,
"pad-note-increase",
QT_TRANSLATE_NOOP("action","Increase Active Duration"),
QT_TRANSLATE_NOOP("action","Increase active duration")
},
{
MsWidget::SCORE_TAB,
STATE_NOTE_ENTRY,
STATE_NORMAL | STATE_NOTE_ENTRY,
"pad-note-decrease",
QT_TRANSLATE_NOOP("action","Decrease Active Duration"),
QT_TRANSLATE_NOOP("action","Decrease active duration")
Expand Down

0 comments on commit 1206c3b

Please sign in to comment.