Get current event opened in lightbox

I need to get the event, that is currently opened in lightbox.

I can get an event with scheduler.getEvent(id) but how do I find the id of the event, that is currently opened in lightbox?

Hi,
scheduler.getState will do the job: var event_id = scheduler.getState().lightbox_id