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 0189d44 commit 815d7f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mscore/musescore.cpp
Expand Up @@ -1273,7 +1273,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 @@ -2781,7 +2780,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 815d7f9

Please sign in to comment.