From ce29bf00c7941d6ee10276aab62cca71e8bb335d Mon Sep 17 00:00:00 2001 From: LorenDB Date: Wed, 21 Oct 2020 22:17:51 -0400 Subject: [PATCH] Delete text on Ctrl-U --- src/TextInputWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp index 22e8aafc..e6a10f0a 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp @@ -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();