Unanswered: Beforeclose Listener

Unanswered: Beforeclose Listener

Hi, I am listening to a panel's beforeclose event. It is a form I check updates in. I send an Ext.MessageBox.confirm when it was updated. Then I have three possibilities :

If they click on Yes, I save the changes, and close the panel.

If they click on No, I simply close the panel.

If they click on Cancel, I have to block panel's closure and let the user continue in this panel.

This is for the third point I have difficulties : I don't know how to stop the closure. It is said on docs that I must return false from a listener, but I can't manage to do it. So if you know how to do that, please help !

Keep in mind that Ext.Msg.confirm(<...>) is asynchronous and doesn't halt execution, so you're most likely falling straight on through the beforeclose event handling code, which returns a true by default.