From 29b35ad6d8e7701eb9e2b89e9b6f3b8ff987a6ca Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 10 Jul 2014 13:19:58 -0300 Subject: Correctly fake keyPressEvent for tabs and returns since we need to filter for incorrect comma usage, we need to recurse instead of passing the keyEvent to the base class. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/tagwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/tagwidget.cpp b/qt-ui/tagwidget.cpp index 819b561ed..51e947682 100644 --- a/qt-ui/tagwidget.cpp +++ b/qt-ui/tagwidget.cpp @@ -182,7 +182,7 @@ void TagWidget::keyPressEvent(QKeyEvent *e) MainWindow::instance()->information()->nextInputField(e); // by sending the key event to the MainTab widget } else if (e->key() == Qt::Key_Tab || e->key() == Qt::Key_Return) { // otherwise let's pretend this is a comma instead QKeyEvent fakeEvent(e->type(), Qt::Key_Comma, e->modifiers(), QString(",")); - GroupedLineEdit::keyPressEvent(&fakeEvent); + keyPressEvent(&fakeEvent); } else { GroupedLineEdit::keyPressEvent(e); } -- cgit v1.2.3-70-g09d2