Added cancelable:true to the cancel event.

This way dialog canceling (for example with Esc key) can be event.preventDefault()-ed if needed.