fix #295260: ensure focus on a scoreview after inserting symbols from a palette in text editing mode
Not focusing scoreview in this situation didn't lead to issues previously since the old palettes weren't using keyboard navigation. New palettes actively grab focus and handle keyboard input so setting focus to a scoreview is required now to enable using palettes while editing a text.
This commit is contained in:
parent
80b83cf706
commit
62c0f4217c
1 changed files with 2 additions and 0 deletions
|
@ -729,6 +729,8 @@ void Palette::applyPaletteElement(Element* element, Qt::KeyboardModifiers modifi
|
|||
if (viewer->mscoreState() == STATE_NOTE_ENTRY_STAFF_DRUM)
|
||||
viewer->moveCursor();
|
||||
}
|
||||
else if (viewer->mscoreState() & STATE_ALLTEXTUAL_EDIT)
|
||||
viewer->setFocus();
|
||||
viewer->setDropTarget(0);
|
||||
// mscore->endCmd();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue