close modal window click in the background/ or outside of the window?


There is a solution to close a modal Window when i click in the background? or how i can add some new listener on the backgroundLayer?

I open a modal window and open some new dialog (add window to the mainAppllication) from this. so when i hit on the background from the first modal window, the new dialog should be closed…