Implemented CTRL-Enter not erasing the input

This commit is contained in:
Cranken 2017-07-23 14:54:01 +02:00
parent 3bf111a091
commit 15c14c5008

View file

@ -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());
}
}
});