From 1206c3b7b775cee2981ad57cc76d447144dbda4f Mon Sep 17 00:00:00 2001 From: "J.G" Date: Sun, 13 Oct 2024 02:02:12 +0000 Subject: [PATCH] Commands: increase/decrease active duration (toggle for note entry) will function as half/double when not in note-entry or if range selection exists --- libmscore/cmd.cpp | 6 ++++++ mscore/shortcut.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libmscore/cmd.cpp b/libmscore/cmd.cpp index 0dc999a810d8b..4e21b84879589 100644 --- a/libmscore/cmd.cpp +++ b/libmscore/cmd.cpp @@ -4024,6 +4024,9 @@ void Score::cmdPadNoteIncreaseTAB(const EditData& ed) default: break; } + if (!score()->noteEntryMode() || selection().isRange()) { + score()->cmdDoubleDuration(); + } } //--------------------------------------------------------- @@ -4076,6 +4079,9 @@ void Score::cmdPadNoteDecreaseTAB(const EditData& ed) default: break; } + if (!score()->noteEntryMode() || selection().isRange()) { + score()->cmdHalfDuration(); + } } //--------------------------------------------------------- diff --git a/mscore/shortcut.cpp b/mscore/shortcut.cpp index 28e2a38541af7..10ca814139ba2 100644 --- a/mscore/shortcut.cpp +++ b/mscore/shortcut.cpp @@ -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")