Delete text on Ctrl-U
This commit is contained in:
parent
8a188ac6f7
commit
ce29bf00c7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user