Diffstat (limited to 'korganizer/koeventviewer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeventviewer.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index 417d89c..44da058 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp @@ -694,2 +694,14 @@ void KOEventViewer::addText(QString text) setText(mText); } +void KOEventViewer::keyPressEvent ( QKeyEvent * e ) +{ + switch ( e->key() ) { + case Qt::Key_Return: + case Qt::Key_Enter : + e->ignore(); + break; + default: + QTextBrowser::keyPressEvent ( e ); + break; + } +} |