From 0290aea47b5e7e5f070c85ddd102ff9d39588ced Mon Sep 17 00:00:00 2001 From: Christoffer Sterner Date: Sat, 31 Jan 2015 22:54:52 +0100 Subject: [PATCH] Fix keypad enter not sending message Issue #1068 --- src/widget/tool/chattextedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/tool/chattextedit.cpp b/src/widget/tool/chattextedit.cpp index 73abc31da..08526fc5b 100644 --- a/src/widget/tool/chattextedit.cpp +++ b/src/widget/tool/chattextedit.cpp @@ -27,7 +27,7 @@ ChatTextEdit::ChatTextEdit(QWidget *parent) : void ChatTextEdit::keyPressEvent(QKeyEvent * event) { int key = event->key(); - if ((key == Qt::Key_Enter || key == Qt::Key_Return) && !(event->modifiers() && Qt::ShiftModifier)) + if ((key == Qt::Key_Enter || key == Qt::Key_Return) && !(event->modifiers() & Qt::ShiftModifier)) emit enterPressed(); else if (key == Qt::Key_Tab) emit tabPressed();