diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-09-19 11:05:28 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-09-19 11:05:28 (GMT) |
commit | dd3b1917e64548e8120ca85dd8ad59893d9d7576 (patch) | |
tree | 73fd5fec1f0a3c8c19bba85a0067d535b41d80a1 /Swift/QtUI | |
parent | 3b30c14b760312413135e6324b642b7aaaa0d865 (diff) | |
download | swift-contrib-dd3b1917e64548e8120ca85dd8ad59893d9d7576.zip swift-contrib-dd3b1917e64548e8120ca85dd8ad59893d9d7576.tar.bz2 |
Treat Enter on a keypad correctly in the chatdlg.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtTextEdit.cpp | 2 |
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); |