Thanks for reminding me
The difficulty I had with implementing that is that the dictionary popup is the only one that has a 'doTap' function of its own (out of the box). So for every other overlay I'd have to add a new function, and that didn't seem like the proper way to do it (and I would want to make it work for most if not all overlays, not just a select few). However, I may have just found a way to create a general solution, to allow closing of all overlays from a single function. I'll post here when I know more.