Allow the 0 key to toggle the Rest toolbar button in Rhythm entry mode

This commit is contained in:
Matt McClinch 2018-05-31 00:43:38 -04:00
parent c7fa7c6fc6
commit 8f5e5ca462

View file

@ -3049,11 +3049,11 @@ void ScoreView::cmdEnterRest()
void ScoreView::cmdEnterRest(const TDuration& d)
{
//TODO if (!noteEntryMode())
// sm->postEvent(new CommandEvent("note-input"));
// if (_score->usingNoteEntryMethod(NoteEntryMethod::RHYTHM))
// _score->cmd(getAction("pad-rest"));
// else
if (!noteEntryMode())
cmd("note-input");
if (_score->usingNoteEntryMethod(NoteEntryMethod::RHYTHM))
_score->cmd(getAction("pad-rest"), editData);
else
_score->cmdEnterRest(d);
#if 0
expandVoice();