diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-10 13:19:58 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-10 10:18:23 -0700 |
commit | 29b35ad6d8e7701eb9e2b89e9b6f3b8ff987a6ca (patch) | |
tree | de956acafb3f07cfd316b505a25724e08735da17 /qt-ui | |
parent | 37fa2fda03ec39e7099f5cf1f2d5b96d8cd9f2c2 (diff) | |
download | subsurface-29b35ad6d8e7701eb9e2b89e9b6f3b8ff987a6ca.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/tagwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |