From dd3b1917e64548e8120ca85dd8ad59893d9d7576 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sat, 19 Sep 2009 12:05:28 +0100
Subject: Treat Enter on a keypad correctly in the chatdlg.


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);
-- 
cgit v0.10.2-6-g49f6