summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtTextEdit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtTextEdit.cpp b/Swift/QtUI/QtTextEdit.cpp
index a116ede..d41764d 100644
--- a/Swift/QtUI/QtTextEdit.cpp
+++ b/Swift/QtUI/QtTextEdit.cpp
@@ -12,7 +12,7 @@ QtTextEdit::QtTextEdit(QWidget* parent) : QTextEdit(parent){
void QtTextEdit::keyPressEvent(QKeyEvent* event) {
if ((event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return)
- && event->modifiers() == Qt::NoModifier) {
+ && (event->modifiers() == Qt::NoModifier || event->modifiers() == Qt::KeypadModifier)) {
emit returnPressed();
} else {
QTextEdit::keyPressEvent(event);