I have a modal form. How can I get an event (execute some code) when the user click outside the modal form?
(I want to hide the modal form when the user clicks outside)
Are there some API functions to get mouse events on other forms under the modal form?
A hook maybe? Would a hook (subclassing) work?