I've been using EVENT_ACTION_LAYER_POP/PUSH, but the fact that they trigger on menus and dialogs is only a coincidence since Action Layers are all about Keybinding contexts. That's more hack-ish than I'm comfortable with.
The best hack I've found is to set the Control's parent to the Compass if I want it to hide when menus open, since that's what the Compass does (and the Control inherits that behavior).
|