Pro Gallery : how to trigger event in 'expand mode'?

Hi there,

I would like to trigger a lightbox inside the ProGallery Expand mode (explaining usage of keyboard’s arrows and spacebar).

This code triggers the lightbox, but on the Progallery main page, not in the Expand mode page.
Same problem with Text box and without Timeout.

Any solution/help ?

import wixWindow from ‘wix-window’;
$w.onReady(function () {
$w(‘#gallery1’).onItemClicked((event)=> {
setTimeout(function() {
wixWindow.openLightbox(“testx”);
}, 1000);
});
});

Thank You,
Ben