Skip to content

Commit

Permalink
fix #227826: can't use Del key in text edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Jun 27, 2017
1 parent e6d9ddc commit b829860
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,6 @@ void MuseScore::selectionChanged(SelState selectionState)
bool enable = selectionState != SelState::NONE;
getAction("cut")->setEnabled(enable);
getAction("copy")->setEnabled(enable);
getAction("delete")->setEnabled(enable);
getAction("select-similar-range")->setEnabled(selectionState == SelState::RANGE);
if (pianorollEditor)
pianorollEditor->changeSelection(selectionState);
Expand Down Expand Up @@ -3099,7 +3098,7 @@ void MuseScore::changeState(ScoreState val)
a->setEnabled(driver);
}
else if (s->key() == "pad-dot" || s->key() == "pad-dot-dot" || s->key() == "delete")
a->setEnabled(!(val & (STATE_ALLTEXTUAL_EDIT | STATE_EDIT)));
a->setEnabled(!(val & (STATE_ALLTEXTUAL_EDIT | STATE_EDIT)));
else {
a->setEnabled(s->state() & val);
}
Expand Down

0 comments on commit b829860

Please sign in to comment.