How can I set typical default buttons on a dialog to reuse their expected behavior:
- OK button (reacts on ENTER pressed while any field on the form is in focus)
- Cancel button (does the same as ESC key)
Another related question... Which event is raised when ESC is pressed, just before closing the dialog? This would be a place to put "Are you sure?" msg box..