diff options
author | LorenDB <computersemiexpert@outlook.com> | 2020-10-21 22:17:51 -0400 |
---|---|---|
committer | LorenDB <computersemiexpert@outlook.com> | 2020-10-21 22:18:51 -0400 |
commit | ce29bf00c7941d6ee10276aab62cca71e8bb335d (patch) | |
tree | ff91e2534dab80f94eef4576fd4d765f04292ff4 /src | |
parent | Use QFontComboBox as per issue 238 (deleted comments) (diff) | |
download | nheko-ce29bf00c7941d6ee10276aab62cca71e8bb335d.tar.xz |
Delete text on Ctrl-U
Diffstat (limited to 'src')
-rw-r--r-- | src/TextInputWidget.cpp | 3 |
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(); |