John Levon wrote:

> On Thu, Jan 08, 2004 at 12:04:13PM +0100, Alfredo Braunstein wrote:
> 
>> But *not* by pressing the esc key. Go figure.
>> 
>> Pressing the esc key is not equivalent to pressing the cancel button.
> 
> Qt is moronic. I probably ranted about this in the archives. More
> importantly, I fixed the problem for some important subclass of dialogs
> that had clean up to do when a dialog closes. Look at
> QSpellchecker(Dialog?), somewhere there there is handling for the Escape
> key. I forget the details, hope that's enough to give you a clue

Cool, I think so. I think it's adding this one, right?

void QSpellcheckerDialog::reject()
{
         form_->slotWMHide();
         QSpellcheckerDialogBase::reject();
}

Umph... we should add it to some base class somehow.

Alfredo


Reply via email to