summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-09-19 11:05:28 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-09-19 11:05:28 (GMT)
commitdd3b1917e64548e8120ca85dd8ad59893d9d7576 (patch)
tree73fd5fec1f0a3c8c19bba85a0067d535b41d80a1 /Swift/QtUI
parent3b30c14b760312413135e6324b642b7aaaa0d865 (diff)
downloadswift-dd3b1917e64548e8120ca85dd8ad59893d9d7576.zip
swift-dd3b1917e64548e8120ca85dd8ad59893d9d7576.tar.bz2
Treat Enter on a keypad correctly in the chatdlg.
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);