fix #30271
modified: mscore/musescore.cpp modified: mscore/musescore.h modified: mscore/scoreaccessibility.cpp
This commit is contained in:
parent
54f4fc3acf
commit
92a7750d49
3 changed files with 14 additions and 2 deletions
|
@ -4375,6 +4375,15 @@ Navigator* MuseScore::navigator() const
|
|||
return _navigator ? static_cast<Navigator*>(_navigator->widget()) : 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
// getSearchDialog
|
||||
//---------------------------------------------------------
|
||||
|
||||
QWidget* MuseScore::getSearchDialog() const
|
||||
{
|
||||
return searchDialog;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
// updateLayer
|
||||
//---------------------------------------------------------
|
||||
|
|
|
@ -611,6 +611,7 @@ class MuseScore : public QMainWindow, public MuseScoreCore {
|
|||
Q_INVOKABLE QString getLocaleISOCode() const;
|
||||
Navigator* navigator() const;
|
||||
NScrollArea* navigatorScrollArea() const { return _navigator; }
|
||||
QWidget* getSearchDialog() const;
|
||||
void updateLayer();
|
||||
void updatePlayMode();
|
||||
bool loop() const { return loopAction->isChecked(); }
|
||||
|
|
|
@ -175,9 +175,11 @@ void ScoreAccessibility::updateAccessibilityInfo()
|
|||
currentInfoChanged();
|
||||
ScoreView* w = static_cast<MuseScore*>(mainWindow)->currentScoreView();
|
||||
|
||||
//getInspector->isAncestorOf is used so that inspector doesn't lose focus
|
||||
//getInspector->isAncestorOf is used so that inspector and search dialog don't loose focus
|
||||
//when this method is called
|
||||
if ( (qApp->focusWidget() != w) && !mscore->getInspector()->isAncestorOf(qApp->focusWidget())) {
|
||||
if ( (qApp->focusWidget() != w) &&
|
||||
!mscore->getInspector()->isAncestorOf(qApp->focusWidget()) &&
|
||||
(mscore->getSearchDialog() && !mscore->getSearchDialog()->isAncestorOf(qApp->focusWidget()))) {
|
||||
w->setFocus();
|
||||
}
|
||||
QObject* obj = static_cast<QObject*>(w);
|
||||
|
|
Loading…
Reference in a new issue