Fixed: When closing a panel with escape, the delegates are not called

Previously, when closing a panel or popover with escape, the different delegates weren't called.
Now it does.