From 39d4cbf2f3a79316c9f9d611c56ff84ab3ccbf51 Mon Sep 17 00:00:00 2001 From: Eism Date: Thu, 24 Mar 2022 14:21:28 +0200 Subject: [PATCH] Fixed reading info in enable panel --- .../qml/MuseScore/UiComponents/InfoPanel.qml | 12 +++++++++++- .../qml/MuseScore/Plugins/internal/EnablePanel.qml | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/framework/uicomponents/qml/MuseScore/UiComponents/InfoPanel.qml b/src/framework/uicomponents/qml/MuseScore/UiComponents/InfoPanel.qml index 6068f92d87..10f068e180 100644 --- a/src/framework/uicomponents/qml/MuseScore/UiComponents/InfoPanel.qml +++ b/src/framework/uicomponents/qml/MuseScore/UiComponents/InfoPanel.qml @@ -70,7 +70,7 @@ PopupPanel { if (opened) { Qt.callLater(focusOnOpened) } else { - accessibleInfo.focused = false + Qt.callLater(resetFocusOnInfo) } } @@ -79,9 +79,19 @@ PopupPanel { root.mainButton.navigation.requestActive() } + readInfo() + } + + function readInfo() { + accessibleInfo.ignored = false accessibleInfo.focused = true } + function resetFocusOnInfo() { + accessibleInfo.ignored = true + accessibleInfo.focused = false + } + AccessibleItem { id: accessibleInfo accessibleParent: root.accessible diff --git a/src/plugins/qml/MuseScore/Plugins/internal/EnablePanel.qml b/src/plugins/qml/MuseScore/Plugins/internal/EnablePanel.qml index 7ad6b5ae66..fe132205c9 100644 --- a/src/plugins/qml/MuseScore/Plugins/internal/EnablePanel.qml +++ b/src/plugins/qml/MuseScore/Plugins/internal/EnablePanel.qml @@ -60,10 +60,10 @@ InfoPanel { navigation.name: text + "Button" navigation.panel: root.contentNavigation navigation.column: 3 - navigation.accessible.ignored: true + accessible.ignored: true navigation.onActiveChanged: { if (!navigation.active) { - navigation.accessible.ignored = false + accessible.ignored = false } }