Gallery: scroll initial cursor target into view on open
This commit is contained in:
@@ -21,7 +21,10 @@ Item {
|
|||||||
function open(payloadJson) {
|
function open(payloadJson) {
|
||||||
closingFromHost = false
|
closingFromHost = false
|
||||||
window.visible = true
|
window.visible = true
|
||||||
Qt.callLater(function() { if (keyCatcher) keyCatcher.forceActiveFocus() })
|
Qt.callLater(function() {
|
||||||
|
if (keyCatcher) keyCatcher.forceActiveFocus()
|
||||||
|
ensureCursorVisible(currentTarget())
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Host-initiated close (`shell hide`). Visibility flips without
|
// Host-initiated close (`shell hide`). Visibility flips without
|
||||||
|
|||||||
Reference in New Issue
Block a user