summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLorenDB <computersemiexpert@outlook.com>2020-10-21 22:17:51 -0400
committerLorenDB <computersemiexpert@outlook.com>2020-10-21 22:18:51 -0400
commitce29bf00c7941d6ee10276aab62cca71e8bb335d (patch)
treeff91e2534dab80f94eef4576fd4d765f04292ff4 /src
parentUse QFontComboBox as per issue 238 (deleted comments) (diff)
downloadnheko-ce29bf00c7941d6ee10276aab62cca71e8bb335d.tar.xz
Delete text on Ctrl-U
Diffstat (limited to 'src')
-rw-r--r--src/TextInputWidget.cpp3
1 files changed, 3 insertions, 0 deletions
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();