Merge pull request #307 from LorenDB/ctrl-u

Delete text on Ctrl-U
This commit is contained in:
DeepBlueV7.X 2020-10-24 23:55:03 +02:00 committed by GitHub
commit da085db6d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,6 +165,9 @@ FilteredTextEdit::keyPressEvent(QKeyEvent *event)
MacHelper::showEmojiWindow();
#endif
if (event->modifiers() == Qt::ControlModifier && event->key() == Qt::Key_U)
QTextEdit::setText("");
if (!isModifier) {
if (!typingTimer_->isActive())
emit startedTyping();