Alfredo Braunstein wrote: > Alfredo Braunstein wrote: > >> Pressing the esc key is not equivalent to pressing the cancel >> button. > > ... on qt. xforms behaves ok.
That's a bug then. In xforms (FormDialogView.C) we have: fl_set_form_atclose(form(), C_WMHideCB, 0); static int C_WMHideCB(FL_FORM * form, void *) { // Close the dialog cleanly, even if the WM is used to do so. BOOST_ASSERT(form && form->u_vdata); FormDialogView * ptr = static_cast<FormDialogView *>(form->u_vdata); ptr->dialog().CancelButton(); return FL_CANCEL; } Qt should do something equivalent to invoke CancelButton. Looking at QDialogView.C I see this: void QDialogView::slotWMHide() { dialog().CancelButton(); } maybe a signal/slot connection is broken? -- Angus