I am using FM Pro Advanced 11 v3 on Vista.
I am trying to leverage the OnLayoutExit trigger to clear some global variables when a layout closes.
Per the documentation, I am expecting this trigger to fire when a layout is exited (closed).
However, I am discovering that sometimes the trigger fires when another layout is being opened.
In particular, this happens when the subject layout (the one with the OnLayoutExit trigger) has focus and a custom menu item is used to open a new layout.
I've attached a file that demonstrates this problem.
I think this is a bug, but I am fairly new to FM so I'm not sure if this behavior is expected.
Can someone run my example and confirm that this is indeed unexpected behavior?