Detecting whether a pop-up menu is visible
Posted on 2004-11-03
I have a listbox which is dynamic in its contents. A context-sensitive pop-up menu shows when the user right-clicks on an entry. I need to stop updating the listbox whilst the pop-up menu is visible, to avoid the user selecting an option for an item other than the one he selected.
Trouble is: how? I can tell when the pop-up menu gets shown, but not when it gets hidden.
There are a couple of solutions in EE already, but they're messy and I'm not 100% convinced they will catch all the events which cause the pop-up menu to close (task swap, minimise, another active window, etc).
Any simple, foolproof solution for D7Pro?