Window.onPopupHide

Function/Meaning
Close popup window
Type
Event of the Window class
Syntax
onPopupHide()
Arguments
None
Description
This event occurs when the popup window should be closed. This event occurs when the Window.stayOnTop property is true and the Window.focusable property is false, and "another window is clicked" or "another application becomes active."
Usually, you should perform processing to close or hide the window here.
Reference
Window.focusable
Window.stayOnTop