In windows, I wrote a dialog which is inherited from wxDialog: In this dialog, I put some wxTextCtrl, and show it in modeless. But, I want to this dialog can be closed when input ESC key. How shall I do? Best Regards, Bernard