diff options
-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 a33bd5516..fbebe3f35 100644 --- a/qt-ui/tagwidget.cpp +++ b/qt-ui/tagwidget.cpp @@ -205,7 +205,7 @@ void TagWidget::keyPressEvent(QKeyEvent *e) popup->hide(); } } - if (e->key() == Qt::Key_Tab) { // let's pretend this is a comma instead + if (e->key() == Qt::Key_Tab || e->key() == Qt::Key_Return) { // let's pretend this is a comma instead QKeyEvent fakeEvent(e->type(), Qt::Key_Comma, e->modifiers(), QString(",")); GroupedLineEdit::keyPressEvent(&fakeEvent); } else { |