From 5d95a6a17acbb9d56d6999816154b27bde1c1385 Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Thu, 14 May 2009 20:43:32 +0000 Subject: [PATCH] *! No typing event can occur if Ctrl, Alt or Shift is pressed. --- src/articleview.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/articleview.cc b/src/articleview.cc index c546ebd0..d93093ee 100644 --- a/src/articleview.cc +++ b/src/articleview.cc @@ -242,6 +242,10 @@ bool ArticleView::eventFilter( QObject * obj, QEvent * ev ) { QKeyEvent * keyEvent = static_cast< QKeyEvent * >( ev ); + if ( keyEvent->modifiers() & + ( Qt::ControlModifier | Qt::AltModifier | Qt::MetaModifier ) ) + return false; // A non-typing modifier is pressed + if ( keyEvent->key() == Qt::Key_Space || keyEvent->key() == Qt::Key_Backspace || keyEvent->key() == Qt::Key_Tab )