From 15c14c50080709cc51f4a804434d8e17c6bff110 Mon Sep 17 00:00:00 2001 From: Cranken Date: Sun, 23 Jul 2017 14:54:01 +0200 Subject: [PATCH] Implemented CTRL-Enter not erasing the input --- src/widgets/chatwidgetinput.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widgets/chatwidgetinput.cpp b/src/widgets/chatwidgetinput.cpp index acddf1af6..7c5d330b7 100644 --- a/src/widgets/chatwidgetinput.cpp +++ b/src/widgets/chatwidgetinput.cpp @@ -60,7 +60,10 @@ ChatWidgetInput::ChatWidgetInput(ChatWidget *_chatWidget) c->sendMessage(textInput.toPlainText()); event->accept(); - textInput.setText(QString()); + if(!(event->modifiers() == Qt::ControlModifier)) + { + textInput.setText(QString()); + } } });