Gallery: scroll initial cursor target into view on open

This commit is contained in:
Ryan Hughes committed 2026-05-18 01:47:29 -04:00
1 parent b8188ce46c
commit 54da1a90ab
1 file changed
+4 -1
@@ -21,7 +21,10 @@ Item {
function open(payloadJson) {
closingFromHost = false
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