*! Filter-out Tab key as well.

This commit is contained in:
Konstantin Isakov 2009-05-12 17:57:53 +00:00
parent aedd77f116
commit 7c6883fe11

View file

@ -236,7 +236,8 @@ bool ArticleView::eventFilter( QObject * obj, QEvent * ev )
QKeyEvent * keyEvent = static_cast< QKeyEvent * >( ev );
if ( keyEvent->key() == Qt::Key_Space ||
keyEvent->key() == Qt::Key_Backspace )
keyEvent->key() == Qt::Key_Backspace ||
keyEvent->key() == Qt::Key_Tab )
return false; // Those key have other uses than to start typing
QString text = keyEvent->text();