From 40c04a4fe42fb55eae2f4bf3084c8fa769c49518 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 11 Nov 2021 16:49:03 +0100 Subject: [PATCH] Utils: Pass unhandled FancyLineEdit key events ... to direct base class CompletingLineEdit, so CursorDown gets properly handled. Change-Id: I8d8d9ec911527d5862dd1ba13691eaaf547f4230 Reviewed-by: Eike Ziller --- src/libs/utils/fancylineedit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/utils/fancylineedit.cpp b/src/libs/utils/fancylineedit.cpp index b842104a08d..45d8e3ea109 100644 --- a/src/libs/utils/fancylineedit.cpp +++ b/src/libs/utils/fancylineedit.cpp @@ -382,9 +382,9 @@ void FancyLineEdit::keyPressEvent(QKeyEvent *event) else if (event == QKeySequence::SelectNextWord) CamelCaseCursor::right(this, QTextCursor::KeepAnchor); else - QLineEdit::keyPressEvent(event); + CompletingLineEdit::keyPressEvent(event); } else { - QLineEdit::keyPressEvent(event); + CompletingLineEdit::keyPressEvent(event); } }