summary refs log tree commit diff
path: root/src/TextInputWidget.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-10-24 23:55:03 +0200
committerGitHub <noreply@github.com>2020-10-24 23:55:03 +0200
commitda085db6d6e193652b346b0f5e653881b50d02f1 (patch)
tree6f5b6a16c960dec0aab53600f2826e3afe8be60b /src/TextInputWidget.cpp
parentFix login (diff)
parentDelete text on Ctrl-U (diff)
downloadnheko-da085db6d6e193652b346b0f5e653881b50d02f1.tar.xz
Merge pull request #307 from LorenDB/ctrl-u
Delete text on Ctrl-U
Diffstat (limited to 'src/TextInputWidget.cpp')
-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();