fix #227826: can't use Del key in text edit mode
This commit is contained in:
parent
e6d9ddcf3f
commit
b829860ad3
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue