Hi everyone, im hoping someone can point me in the right direction with the following problem.
i have an “about” box which i want to be able to dismiss by clicking anywhere outside it.
enterModalState' but then i want to, somehow, get visibility of all mouse down events. I tried usingcanModalEventBeSentToComponent’ on the parent component but, this appears to let enter/leave events through and not mouseDown events. in any case, i really want to allow clicking anywhere and not just on the parent and this would be very messy. im wondering if there’s some way for a modal dialog to acquire the focus of ALL events temporarily.
dont go modal at all and use,
this gets mouseDown and works, but the side effect is that the mouseDown is also delivered to its proper outside component which causes other things to happen. is there some way to absorb the event if “used” using this mechanism.
the obvious way i didnt think of.
if there is plan C, please point me in the right direction. otherwise plan B nearly works and doesnt have to be modal. for plan A, i dont care if i am modal or not so long as i can see app-wide events somehow.
thanks for any help or ideas.