mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Implemented CTRL-Enter not erasing the input
This commit is contained in:
parent
3bf111a091
commit
15c14c5008
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,10 @@ ChatWidgetInput::ChatWidgetInput(ChatWidget *_chatWidget)
|
||||||
|
|
||||||
c->sendMessage(textInput.toPlainText());
|
c->sendMessage(textInput.toPlainText());
|
||||||
event->accept();
|
event->accept();
|
||||||
textInput.setText(QString());
|
if(!(event->modifiers() == Qt::ControlModifier))
|
||||||
|
{
|
||||||
|
textInput.setText(QString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue