Fixed reading info in enable panel
This commit is contained in:
parent
adce8ab838
commit
39d4cbf2f3
2 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue