mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
*! Filter-out Tab key as well.
This commit is contained in:
parent
aedd77f116
commit
7c6883fe11
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue