summaryrefslogtreecommitdiff
path: root/noncore/net/mail/viewmailbase.cpp
Unidiff
Diffstat (limited to 'noncore/net/mail/viewmailbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/viewmailbase.cpp10
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
@@ -79,4 +79,12 @@ void ViewMailBase::slotChangeAttachview(bool state)
79 else attachments->hide(); 79 else attachments->hide();
80} 80}
81 81
82 82void ViewMailBase::keyPressEvent ( QKeyEvent * e )
83{
84 if( e->key()==Qt::Key_Escape ) {
85 close();
86 e->accept();
87 return;
88 }
89 QWidget::keyPressEvent(e);
90}