Fixed reading info in enable panel

This commit is contained in:
Eism 2022-03-24 14:21:28 +02:00
parent adce8ab838
commit 39d4cbf2f3
2 changed files with 13 additions and 3 deletions

View file

@ -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

View file

@ -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
}
}