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,8 +60,11 @@ ChatWidgetInput::ChatWidgetInput(ChatWidget *_chatWidget)
c->sendMessage(textInput.toPlainText());
event->accept();
if(!(event->modifiers() == Qt::ControlModifier))
{
textInput.setText(QString());
}
}
});
/* XXX(pajlada): FIX THIS