Clear default member list highlight on focus loss
This commit is contained in:
parent
27b914b0bf
commit
e5a196dcf8
|
@ -84,11 +84,22 @@ HColumnLayout {
|
||||||
py.callCoro("set_substring_filter", [modelSyncId, text])
|
py.callCoro("set_substring_filter", [modelSyncId, text])
|
||||||
}
|
}
|
||||||
|
|
||||||
onFocusChanged: if (
|
onActiveFocusChanged: {
|
||||||
focus &&
|
if (
|
||||||
stackView.depth === 1 &&
|
activeFocus &&
|
||||||
stackView.currentItem.currentIndex === -1
|
stackView.depth === 1 &&
|
||||||
) stackView.currentItem.currentIndex = 0
|
stackView.currentItem.currentIndex === -1
|
||||||
|
) {
|
||||||
|
stackView.currentItem.currentIndex = 0
|
||||||
|
} else if (
|
||||||
|
! activeFocus &&
|
||||||
|
stackView.depth === 1 &&
|
||||||
|
stackView.currentItem.currentIndex === 0
|
||||||
|
) {
|
||||||
|
stackView.currentItem.currentIndex = -1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Keys.forwardTo: [stackView.currentItem]
|
Keys.forwardTo: [stackView.currentItem]
|
||||||
Keys.priority: Keys.AfterItem
|
Keys.priority: Keys.AfterItem
|
||||||
|
|
Loading…
Reference in New Issue
Block a user