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:
Dmitri Ovodok 2019-10-07 11:47:27 +02:00
parent 80b83cf706
commit 62c0f4217c

View file

@ -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();
}