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