From 5fc495a073af4883ce5e00405225ae07e08f48ab Mon Sep 17 00:00:00 2001 From: fourtf Date: Fri, 25 Sep 2020 22:59:20 +0200 Subject: [PATCH] Fixes #1404 --- src/widgets/helper/ResizingTextEdit.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/widgets/helper/ResizingTextEdit.cpp b/src/widgets/helper/ResizingTextEdit.cpp index 40bc66b02..b8d0cd4a3 100644 --- a/src/widgets/helper/ResizingTextEdit.cpp +++ b/src/widgets/helper/ResizingTextEdit.cpp @@ -163,14 +163,7 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event) return; } - // (hemirt) - // this resets the selection in the completion list, it should probably only - // trigger on actual chat input (space, character) and not on every key - // input (pressing alt for example) (fourtf) fixed for shift+tab, there - // might be a better solution but nobody is gonna bother anyways - if (event->key() != Qt::Key_Shift && event->key() != Qt::Key_Control && - event->key() != Qt::Key_Alt && event->key() != Qt::Key_Super_L && - event->key() != Qt::Key_Super_R) + if (!event->text().isEmpty()) { this->completionInProgress_ = false; }