Diffstat (limited to 'noncore/net/mail/viewmailbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/viewmailbase.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/net/mail/viewmailbase.cpp b/noncore/net/mail/viewmailbase.cpp index 153ba9d..7f1d8a0 100644 --- a/noncore/net/mail/viewmailbase.cpp +++ b/noncore/net/mail/viewmailbase.cpp @@ -80,3 +80,11 @@ void ViewMailBase::slotChangeAttachview(bool state) } - +void ViewMailBase::keyPressEvent ( QKeyEvent * e ) +{ + if( e->key()==Qt::Key_Escape ) { + close(); + e->accept(); + return; + } + QWidget::keyPressEvent(e); +} |